用户协议优化
This commit is contained in:
13
App.vue
13
App.vue
@@ -10,6 +10,7 @@ export default {
|
||||
console.log(window)
|
||||
// this.connect()
|
||||
console.log('App Launch')
|
||||
|
||||
let devCode = uni.getStorageSync('devCode')
|
||||
if (!devCode) {
|
||||
uni.getSystemInfo({
|
||||
@@ -18,18 +19,6 @@ export default {
|
||||
},
|
||||
})
|
||||
}
|
||||
if (!uni.getStorageSync(this.$cacheKey.access_token)) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/user/login',
|
||||
})
|
||||
}
|
||||
let userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
||||
if (!userInfo) return
|
||||
// 查询字典
|
||||
queryDictDataCache().then((res) => {
|
||||
uni.setStorageSync(this.$cacheKey.dictData, res.data)
|
||||
})
|
||||
|
||||
},
|
||||
onHide: function () {
|
||||
console.log('App Hide')
|
||||
|
||||
Reference in New Issue
Block a user