App.vue
@@ -2,11 +2,11 @@ export default { onLaunch: function() { console.log('App Launch') // if(!uni.getStorageSync('openId') || !uni.getStorageSync('token')){ // uni.redirectTo({ // url:'/pages/login/index' // }) // } if(!uni.getStorageSync('openId') || !uni.getStorageSync('token')){ uni.redirectTo({ url:'/pages/login/index' }) } }, onShow: function() { console.log('App Show')