From 1d173bb8e278426b5d5b462c9d4facc7230c4088 Mon Sep 17 00:00:00 2001 From: wangdong <1551135706@qq.com> Date: Tue, 17 Sep 2024 22:04:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4H5=E9=93=BE=E6=8E=A5hash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 ++ manifest.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/App.vue b/App.vue index fa2ce7a..33407f9 100644 --- a/App.vue +++ b/App.vue @@ -15,8 +15,10 @@ * 初始化完成时触发 */ onLaunch({ path, query, scene }) { + console.log(this.$route); // #ifdef H5 const storeId = this.$route.query.storeId; + console.log(storeId); uni.setStorageSync('storeId', storeId || ''); // #endif // #ifdef MP diff --git a/manifest.json b/manifest.json index 8031dc4..6274116 100644 --- a/manifest.json +++ b/manifest.json @@ -153,7 +153,7 @@ } }, "router" : { - "mode" : "hash", + "mode" : "history", "base" : "./" }, "devServer" : {