Commit 03da6595 authored by 天马流星拳's avatar 天马流星拳

refactor(share): 替换获取邀请码的API调用方式

将queryInviteCode替换为更直接的getInviteCode方法,简化代码逻辑
parent e88a6b88
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment