产品无权限访问时,跳转到升级VIP

This commit is contained in:
dengjie
2023-01-31 22:48:30 +08:00
parent e4faef661c
commit 093181f23e
3 changed files with 35 additions and 8 deletions

View File

@@ -68,7 +68,14 @@
this.$apiServe.getUser().then(res => {
console.log('个人信息==', res.data);
if (res.data.msg == "登录超时,请重新登录") {
this.isLoad = false
if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
this.$toast.warn('登录失败请重试')
this.isLoad = false
// uni.navigateTo({
// url: '../../pages/my/login/login'
// })
return
}
}
var data = res.data.data
this.avatar = data.avatar