fix: 修复扫码二维码进入同一个设备

This commit is contained in:
luo
2026-09-03 16:40:11 +08:00
parent 6845e97b14
commit 484a807dce
2 changed files with 25 additions and 7 deletions

View File

@@ -43,6 +43,9 @@ export const useUserStore = () => {
const clearUser = () => {
state.token = '';
state.assetToken = '';
state.identifier = '';
state.isDevice = false;
state.realNameStatus = 0;
state.userInfo = { avatar: '', nickname: '' };
uni.removeStorageSync('token');
uni.removeStorageSync('identifier');
@@ -59,4 +62,4 @@ export const useUserStore = () => {
setUserInfo,
clearUser
};
};
};