修改个获取登录状态报错
This commit is contained in:
parent
ea88921d71
commit
a4d97e2ad2
2
app.vue
2
app.vue
@ -701,7 +701,7 @@ export default {
|
||||
const determineIsLogin = () => {
|
||||
let count = 0;
|
||||
let timer = setInterval(() => {
|
||||
if (Object.keys(window["userInfoWin"]).length !== 0) {
|
||||
if (window["userInfoWin"] && Object.keys(window["userInfoWin"]).length !== 0) {
|
||||
clearInterval(timer);
|
||||
user.value = window["userInfoWin"];
|
||||
if (window["userInfoWin"]["uid"] || window["userInfoWin"]["uin"]) isNeedLogin.value = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user