diff --git a/src/store/wx.js b/src/store/wx.js index af74260..163eb62 100644 --- a/src/store/wx.js +++ b/src/store/wx.js @@ -11,7 +11,7 @@ const WxStore = defineStore( initSign() { const _this = this; return new Promise((resolve, reject) => { - const url = window.location.href; + const url = window.location.href.split("?")[0]; wxSign(url).then((data) => { wx.config({ // debug: true, // 开启调试模式