hookehuyr

refactor: 简化微信JSAPI初始化逻辑

<!--
* @Date: 2023-06-13 13:26:46
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-22 14:41:27
* @LastEditTime: 2026-01-22 15:06:58
* @FilePath: /xysBooking/src/App.vue
* @Description: 启动页
-->
......@@ -42,8 +42,7 @@ setToastDefaultOptions({
const init_wx_global = async () => {
try {
const url = window.location.href.split('#')[0]
const cfg_res = await wxJsAPI({ url })
const cfg_res = await wxJsAPI()
if (!cfg_res || !cfg_res?.data) return false
const cfg = { ...cfg_res.data, jsApiList: apiList }
......