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
@@ -41,6 +41,10 @@ export const inviteUtils = {
}
},
clear() {
localStorage.removeItem(INVITE_STORAGE_KEY);
},
captureFromLocation() {
const hashQuery = window.location.hash?.split("?")[1] || "";
const search = window.location.search?.replace(/^\?/, "") || "";