Browse Source

增加加载跳转判断

htc 1 năm trước cách đây
mục cha
commit
069f9d0426
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      App.vue

+ 2 - 0
App.vue

@@ -6,6 +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' })
 		},
 		onHide: function() {
 			console.log('App Hide')