update:修复黑屏下挤号问题

This commit is contained in:
2026-05-20 18:29:57 +08:00
parent 52b26fdcfb
commit 8830650560
3 changed files with 38 additions and 17 deletions

View File

@@ -22,9 +22,7 @@
const {
updateUser,
updateOnline,
updateDevice,
updateGame,
updateRoomNumber
clearSessionState
} = store;
watch(
@@ -50,14 +48,9 @@
}
function onSessionKickedOut() {
uni.removeStorageSync(
`${uni.getAccountInfoSync().miniProgram.envVersion}_token`
);
updateUser();
updateDevice("", "");
updateOnline(false);
updateGame(false, "");
updateRoomNumber("");
const env = uni.getAccountInfoSync().miniProgram.envVersion;
uni.removeStorageSync(`${env}_token`);
clearSessionState();
uni.showModal({
title: "提示",
content: "账号已在其他设备登录",