Showing
1 changed file
with
2 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-06-13 13:26:46 | 2 | * @Date: 2023-06-13 13:26:46 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2026-01-22 14:41:27 | 4 | + * @LastEditTime: 2026-01-22 15:06:58 |
| 5 | * @FilePath: /xysBooking/src/App.vue | 5 | * @FilePath: /xysBooking/src/App.vue |
| 6 | * @Description: 启动页 | 6 | * @Description: 启动页 |
| 7 | --> | 7 | --> |
| ... | @@ -42,8 +42,7 @@ setToastDefaultOptions({ | ... | @@ -42,8 +42,7 @@ setToastDefaultOptions({ |
| 42 | 42 | ||
| 43 | const init_wx_global = async () => { | 43 | const init_wx_global = async () => { |
| 44 | try { | 44 | try { |
| 45 | - const url = window.location.href.split('#')[0] | 45 | + const cfg_res = await wxJsAPI() |
| 46 | - const cfg_res = await wxJsAPI({ url }) | ||
| 47 | if (!cfg_res || !cfg_res?.data) return false | 46 | if (!cfg_res || !cfg_res?.data) return false |
| 48 | 47 | ||
| 49 | const cfg = { ...cfg_res.data, jsApiList: apiList } | 48 | const cfg = { ...cfg_res.data, jsApiList: apiList } | ... | ... |
-
Please register or login to post a comment