Showing
1 changed file
with
3 additions
and
2 deletions
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | * @Author: hookehuyr hookehuyr@gmail.com | 2 | * @Author: hookehuyr hookehuyr@gmail.com |
| 3 | * @Date: 2022-05-26 23:52:36 | 3 | * @Date: 2022-05-26 23:52:36 |
| 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 5 | - * @LastEditTime: 2024-11-28 17:23:43 | 5 | + * @LastEditTime: 2024-12-03 15:39:24 |
| 6 | * @FilePath: /tswj/src/App.vue | 6 | * @FilePath: /tswj/src/App.vue |
| 7 | * @Description: | 7 | * @Description: |
| 8 | --> | 8 | --> |
| ... | @@ -40,7 +40,8 @@ watchEffect( | ... | @@ -40,7 +40,8 @@ watchEffect( |
| 40 | ) | 40 | ) |
| 41 | 41 | ||
| 42 | onMounted(async () => { | 42 | onMounted(async () => { |
| 43 | - const { data } = await wxJsAPI(); | 43 | + const raw_url = encodeURIComponent(location.pathname + location.hash); |
| 44 | + const { data } = await wxJsAPI({url: raw_url}); | ||
| 44 | data.jsApiList = apiList; | 45 | data.jsApiList = apiList; |
| 45 | wx.config(data); | 46 | wx.config(data); |
| 46 | wx.ready(() => { | 47 | wx.ready(() => { | ... | ... |
-
Please register or login to post a comment