chore(auth): 清理已使用的邀请码缓存

This commit is contained in:
xiaojunnuo
2026-06-04 18:28:15 +08:00
parent 7a71e45799
commit 73cab6a6ee
3 changed files with 16 additions and 1 deletions
@@ -100,7 +100,11 @@ async function goBindUser() {
async function autoRegister() {
//自动注册账号
const res = await api.AutoRegister(oauthType, bindCode.value, inviteUtils.get());
const inviteCode = inviteUtils.get();
const res = await api.AutoRegister(oauthType, bindCode.value, inviteCode);
if (inviteCode) {
inviteUtils.clear();
}
//登录成功
userStore.onLoginSuccess(res);
//跳转到首页