no message
This commit is contained in:
15
app.vue
15
app.vue
@@ -30,9 +30,21 @@ const isProduction = process.env.NODE_ENV === "production"
|
||||
onMounted(() => {
|
||||
// if (!isProduction) isNeedLogin.value = false
|
||||
// else determineIsLogin()
|
||||
determineIsLogin
|
||||
|
||||
determineIsLogin()
|
||||
|
||||
|
||||
// if (true) determineIsLogin()
|
||||
// else isNeedLogin.value = false
|
||||
// window["userInfoWin"] = {
|
||||
// "username": "",
|
||||
// "uid": 256624,
|
||||
// "uin": 4171117,
|
||||
// "avatar": "https://oss.gter.net/avatar/97KwEWQHYuMQGDnFqkimXF9SHKuGwVV5zW-tYWFjYQ~~?istype=1&random=K94nvjW4W5Gz",
|
||||
// "messagenum": 0,
|
||||
// "newprompt": 1,
|
||||
// "todaysigned": 0,
|
||||
// }
|
||||
})
|
||||
|
||||
let isNeedLogin = ref(true) // 是否需要登录状态
|
||||
@@ -41,6 +53,7 @@ let isNeedLogin = ref(true) // 是否需要登录状态
|
||||
const determineIsLogin = () => {
|
||||
let count = 0
|
||||
let timer = setInterval(() => {
|
||||
console.log("44");
|
||||
if (Object.keys(window["userInfoWin"]).length !== 0) {
|
||||
clearInterval(timer)
|
||||
if (window["userInfoWin"]["uid"]) {
|
||||
|
||||
Reference in New Issue
Block a user