sunjian 4 months ago
parent
commit
85049a0d86
1 changed files with 11 additions and 11 deletions
  1. 11 11
      App.vue

+ 11 - 11
App.vue

@@ -1,17 +1,17 @@
 <script>
 	export default {
 		onLaunch: function() {
-			console.log('App Launch')
-			const path = this.$route.path;
-			console.log(path)
-			    if (path === '/') {
-			      uni.redirectTo({ url: '/pages/' });
-			    } else if (path === '/pages/canteenBackend') {
-				   console.log("满足这个路径")
-			      uni.redirectTo({ url: '/pages/backend/backend' });
-			    } else {
-			      uni.redirectTo({ url: '/pages/index/main' }); // 默认入口
-			    }
+			// console.log('App Launch')
+			// const path = this.$route.path;
+			// console.log(path)
+			//     if (path === '/') {
+			//       uni.redirectTo({ url: '/pages/index/index' });
+			//     } else if (path === '/pages/canteenBackend') {
+			// 	   console.log("满足这个路径")
+			//       uni.redirectTo({ url: '/pages/backend/backend' });
+			//     } else {
+			//       uni.redirectTo({ url: '/pages/index/index' }); // 默认入口
+			//     }
 		},
 		onShow: function() {
 			console.log('App Show')