no message

This commit is contained in:
A1300399510
2024-01-11 18:49:38 +08:00
parent 9641e408c4
commit e4070a8d74
21 changed files with 169 additions and 156 deletions

15
app.vue
View File

@@ -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"]) {