@@ -6,8 +6,8 @@
onShow: function() {
console.log('App Show')
this.autoUpdate();
- // if(uni.getStorageSync('userInfo')) uni.reLaunch({ url:'/pages/home/index' })
- // else uni.reLaunch({ url:'/pages/login/index' })
+ if(uni.getStorageSync('userInfo')) uni.reLaunch({ url:'/pages/home/index' })
+ else uni.reLaunch({ url:'/pages/login/index' })
},
onHide: function() {
console.log('App Hide')