This commit is contained in:
Gdpao
2020-08-03 14:26:52 +08:00
parent 7ae10c200d
commit 11865d4068
6 changed files with 148 additions and 74 deletions

View File

@@ -180,6 +180,9 @@
return false
} else {
me.loginIn(res.data.token); //存储一个字符传值
// 缓存用户的信息
uni.setStorageSync('user_info',res.data);
if (res.data.member.has_labels) {
uni.switchTab({
url: '/pages/index/index'
@@ -189,14 +192,6 @@
url: '/pageA/topick/topick'
})
}
// 缓存用户的信息
uni.setStorageSync({
key: 'user_info',
data: res.data,
success: function() {
console.log('success');
}
});
}
// 存储接口请求所需token