xklr/wlj 2 years ago
parent
commit
3fe472ffed
2 changed files with 10 additions and 2 deletions
  1. 4 1
      App.vue
  2. 6 1
      manifest.json

+ 4 - 1
App.vue

@@ -5,8 +5,11 @@
 			SET_CUSTOM_BAR: 0,
 			SET_CUSTOM_BAR: 0,
 			SET_SYSTEM_INFO: {}
 			SET_SYSTEM_INFO: {}
 		},
 		},
-		onLaunch: function() {
+		onLaunch: function(option) {
 			console.log('App Launch')
 			console.log('App Launch')
+			let query= option.query||option
+			uni.setStorageSync('query',query)
+			
 			uni.getSystemInfo({
 			uni.getSystemInfo({
 				success: (e) => {
 				success: (e) => {
 					let statusBar = 0
 					let statusBar = 0

+ 6 - 1
manifest.json

@@ -71,5 +71,10 @@
         "enable" : false
         "enable" : false
     },
     },
     "vueVersion" : "2",
     "vueVersion" : "2",
-    "locale" : "auto"
+    "locale" : "auto",
+    "h5" : {
+        "router" : {
+            "mode" : "history"
+        }
+    }
 }
 }