no message

This commit is contained in:
A1300399510
2024-01-09 15:11:03 +08:00
parent 9d07e02de6
commit 52f8709125
54 changed files with 499 additions and 469 deletions

18
app.vue
View File

@@ -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)
}