htc пре 1 година
родитељ
комит
069f9d0426
1 измењених фајлова са 2 додато и 0 уклоњено
  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')