Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TianGongKaiWu-20251203
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
TianGongKaiWu-20251203
Commits
03da6595
Commit
03da6595
authored
Dec 16, 2025
by
天马流星拳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(share): 替换获取邀请码的API调用方式
将queryInviteCode替换为更直接的getInviteCode方法,简化代码逻辑
parent
e88a6b88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
share.js
src/store/share.js
+4
-3
No files found.
src/store/share.js
View file @
03da6595
...
...
@@ -15,9 +15,10 @@ const shareStore = makeAutoObservable({
/** 获取邀请码 */
async
getInviteCode
()
{
const
{
success
,
data
}
=
await
API
.
queryInviteCode
({
channel
:
CFG
.
channel
})
// const { success, data } = await API.queryInviteCode({
// channel: CFG.channel
// })
const
{
success
,
data
}
=
await
API
.
getInviteCode
()
if
(
success
&&
data
)
{
const
{
inviteCode
}
=
data
||
{}
this
.
inviteCode
=
inviteCode
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment