@@ -13,14 +13,16 @@
// 初始化应用配置
this.initConfig()
// 检查用户登录状态
//#ifdef H5
this.checkLogin()
//#endif
},
initConfig() {
this.globalData.config = config
checkLogin() {
if (!getToken()) {
uni.reLaunch({ url: '/pages/login' })
this.$tab.reLaunch('/pages/login')
}
The note is not visible to the blocked user.