Browse Source

增加加载跳转判断

htc 10 months ago
parent
commit
069f9d0426
1 changed files with 2 additions and 0 deletions
  1. 2 0
      App.vue

+ 2 - 0
App.vue

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