修改个获取登录状态报错

This commit is contained in:
DESKTOP-RQ919RC\Pc 2025-04-03 19:07:03 +08:00
parent ea88921d71
commit a4d97e2ad2

View File

@ -701,7 +701,7 @@ export default {
const determineIsLogin = () => { const determineIsLogin = () => {
let count = 0; let count = 0;
let timer = setInterval(() => { let timer = setInterval(() => {
if (Object.keys(window["userInfoWin"]).length !== 0) { if (window["userInfoWin"] && Object.keys(window["userInfoWin"]).length !== 0) {
clearInterval(timer); clearInterval(timer);
user.value = window["userInfoWin"]; user.value = window["userInfoWin"];
if (window["userInfoWin"]["uid"] || window["userInfoWin"]["uin"]) isNeedLogin.value = false; if (window["userInfoWin"]["uid"] || window["userInfoWin"]["uin"]) isNeedLogin.value = false;