hookehuyr

fix

......@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-11-28 17:23:43
* @LastEditTime: 2024-12-03 15:39:24
* @FilePath: /tswj/src/App.vue
* @Description:
-->
......@@ -40,7 +40,8 @@ watchEffect(
)
onMounted(async () => {
const { data } = await wxJsAPI();
const raw_url = encodeURIComponent(location.pathname + location.hash);
const { data } = await wxJsAPI({url: raw_url});
data.jsApiList = apiList;
wx.config(data);
wx.ready(() => {
......