wangguoyu před 4 měsíci
rodič
revize
2c827b5064
1 změnil soubory, kde provedl 30 přidání a 15 odebrání
  1. 30 15
      App.vue

+ 30 - 15
App.vue

@@ -16,20 +16,19 @@
 		onShow: function() {
 
 			// #ifdef APP-PLUS
-					
-			if (cacheManager.get('auth')) {	
-				uni.redirectTo({
-					url: `/pages/study/index`
-				})
-			}else if(!(cacheManager.get('wxLogin').bind)){
-					console.log('asdfadsfadsfasd')
-				// 微信登录且未绑定 
-			} else {
-				cacheManager.clearAll()
-				uni.redirectTo({
-					url: '/pages/login/index'
-				});
-			}
+			// if (cacheManager.get('auth')) {	
+			// 	uni.reLaunch({
+			// 		url: `/pages/study/index`
+			// 	})
+			// }else if(!(cacheManager.get('wxLogin').bind)){
+			// 		console.log('asdfadsfadsfasd')
+			// 	// 微信登录且未绑定 
+			// } else {
+			// 	cacheManager.clearAll()
+			// 	uni.redirectTo({
+			// 		url: '/pages/login/index' 
+			// 	});
+			// }
 			const webview = plus.webview.currentWebview();
 			plus.key.addEventListener('backbutton', () => {
 				event.preventDefault();
@@ -38,7 +37,23 @@
 			// #endif
 		},
 		onHide: function() {
-		//	console.log('App Hide')
+	// 	//	console.log('App Hide')
+	// 	// #ifdef APP-PLUS
+	// 	if (cacheManager.get('auth')) {	
+	// 		uni.reLaunch({
+	// 			url: `/pages/study/index`
+	// 		})
+	// 	}else if(!(cacheManager.get('wxLogin').bind)){
+	// 			console.log('asdfadsfadsfasd')
+	// 		// 微信登录且未绑定 
+	// 	} else {
+	// 		cacheManager.clearAll()
+	// 		uni.redirectTo({
+	// 			url: '/pages/login/index' 
+	// 		});
+	// 	}
+	
+	// 	// #endif
 
 		}
 	}