no message
This commit is contained in:
18
app.vue
18
app.vue
@@ -28,8 +28,20 @@ const isProduction = import.meta.env.NODE_ENV === "production"
|
||||
// })
|
||||
|
||||
onMounted(() => {
|
||||
if (!isProduction) isNeedLogin.value = false
|
||||
else determineIsLogin()
|
||||
console.log("isProduction", isProduction)
|
||||
// if (!isProduction) isNeedLogin.value = false
|
||||
// else determineIsLogin()
|
||||
determineIsLogin()
|
||||
|
||||
// window["userInfoWin"] = {
|
||||
// "username": "",
|
||||
// "uid": 0,
|
||||
// "uin": 0,
|
||||
// "avatar": "https://oss.gter.net/avatar/97KwEWANd_4DHWiY6VbnSUFSCKroYWFjYQ~~?istype=1&random=CyXjyXyLDSrP",
|
||||
// "messagenum": 0,
|
||||
// "newprompt": 0,
|
||||
// "todaysigned": 0,
|
||||
// }
|
||||
})
|
||||
|
||||
let isNeedLogin = ref(true) // 是否需要登录状态
|
||||
@@ -43,7 +55,7 @@ const determineIsLogin = () => {
|
||||
if (window["userInfoWin"]["uid"]) isNeedLogin.value = false
|
||||
}
|
||||
count++
|
||||
if (count >= 10) clearInterval(timer)
|
||||
if (count >= 15) clearInterval(timer)
|
||||
}, 100)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user