BUG修复
This commit is contained in:
@@ -529,7 +529,7 @@ onUnmounted(() => {
|
|||||||
keepScreenOn: false,
|
keepScreenOn: false,
|
||||||
});
|
});
|
||||||
uni.$off("socket-inbox", onReceiveMessage);
|
uni.$off("socket-inbox", onReceiveMessage);
|
||||||
if (owner.value.id !== user.value.id && !battleId.value) {
|
if (roomNumber.value && owner.value.id !== user.value.id && !battleId.value) {
|
||||||
exitRoomAPI(roomNumber.value);
|
exitRoomAPI(roomNumber.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { defineStore } from "pinia";
|
|||||||
const defaultUser = {
|
const defaultUser = {
|
||||||
id: "",
|
id: "",
|
||||||
nickName: "游客",
|
nickName: "游客",
|
||||||
avatar: "../static/avatar.png",
|
avatar: "../static/user-icon.png",
|
||||||
trio: 0, // 大于1表示完成了新手引导
|
trio: 0, // 大于1表示完成了新手引导
|
||||||
lvlName: "",
|
lvlName: "",
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user