htc il y a 4 jours
Parent
commit
7c784dbebb
1 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. 9 1
      App.vue

+ 9 - 1
App.vue

@@ -12,7 +12,15 @@
 			
 		},
 		onShow: function() {
-
+			if(uni.getStorageSync('userInfo')){
+				uni.reLaunch({
+					url:'/pages/dialog'
+				})
+			}else{
+				uni.reLaunch({
+					url:'/pages/login'
+				})
+			}
 		},
 		onHide: function() {