Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
xysBooking
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2026-01-22 15:09:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a0160d53cedd7c37a5cc181d4a57a25057dda6a1
a0160d53
1 parent
1f6fdd9e
refactor: 简化微信JSAPI初始化逻辑
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
src/App.vue
src/App.vue
View file @
a0160d5
<!--
* @Date: 2023-06-13 13:26:46
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-22 1
4:41:27
* @LastEditTime: 2026-01-22 1
5: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 }
...
...
Please
register
or
login
to post a comment