去除H5链接hash

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

@ -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

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

Loading…
Cancel
Save