wangguoyu před 1 měsícem
rodič
revize
0915956ee7
1 změnil soubory, kde provedl 36 přidání a 0 odebrání
  1. 36 0
      App.vue

+ 36 - 0
App.vue

@@ -28,6 +28,24 @@
 				});
 			}
 			// #endif
+			// #ifdef H5
+			if (cacheManager.get('auth')) {
+				uni.reLaunch({
+					url: `/pages/admin/ShouYe/shouye`,
+					success() {
+						
+					}
+				})
+			} else {
+				cacheManager.clearAll()
+				uni.reLaunch({
+					url: '/pages/Login/index',
+					success() {
+			
+					}
+				});
+			}
+			// #endif
 		},
 		onShow: function() {
 
@@ -43,6 +61,24 @@
 				}
 			});
 			// #endif
+			// #ifdef H5
+			if (cacheManager.get('auth')) {
+				uni.reLaunch({
+					url: `/pages/admin/ShouYe/shouye`,
+					success() {
+						
+					}
+				})
+			} else {
+				cacheManager.clearAll()
+				uni.reLaunch({
+					url: '/pages/Login/index',
+					success() {
+			
+					}
+				});
+			}
+			// #endif
 		},
 		onHide: function() {