修改个获取登录状态报错
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user