去除H5链接hash

h5
wangdong 3 months ago
parent ee8b5dbaba
commit 1d173bb8e2
  1. 2
      App.vue
  2. 2
      manifest.json

@ -15,8 +15,10 @@
* 初始化完成时触发 * 初始化完成时触发
*/ */
onLaunch({ path, query, scene }) { onLaunch({ path, query, scene }) {
console.log(this.$route);
// #ifdef H5 // #ifdef H5
const storeId = this.$route.query.storeId; const storeId = this.$route.query.storeId;
console.log(storeId);
uni.setStorageSync('storeId', storeId || ''); uni.setStorageSync('storeId', storeId || '');
// #endif // #endif
// #ifdef MP // #ifdef MP

@ -153,7 +153,7 @@
} }
}, },
"router" : { "router" : {
"mode" : "hash", "mode" : "history",
"base" : "./" "base" : "./"
}, },
"devServer" : { "devServer" : {

Loading…
Cancel
Save