uniapp判断token多次登录问题
if (res.data.code == 401) { var jump = uni.getStorageSync('jump') if (!jump) { uni.navigateTo({ url: '/pages/weixin/weixin' }) } uni.setStorageSync('jump',true) }
weixin.vue登录文件
uni.removeStorageSync({key: 'jump'})
if (res.data.code == 401) { var jump = uni.getStorageSync('jump') if (!jump) { uni.navigateTo({ url: '/pages/weixin/weixin' }) } uni.setStorageSync('jump',true) }
weixin.vue登录文件
uni.removeStorageSync({key: 'jump'})