htc 12 ore fa
parent
commit
9dee1bafe9
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  1. 1 5
      pages/login.vue

+ 1 - 5
pages/login.vue

@@ -32,15 +32,11 @@
 				
 			}
 		},
-		onShow: function() {
+		onReady() {
 			if(uni.getStorageSync('userInfo')){
 				uni.reLaunch({
 					url:'/pages/home'
 				})
-			}else{
-				uni.reLaunch({
-					url:'/pages/login'
-				})
 			}
 		},
 		methods:{