diff --git a/app.vue b/app.vue index ffc7adf..5e8da1a 100644 --- a/app.vue +++ b/app.vue @@ -15,12 +15,28 @@ const isProduction = process.env.NODE_ENV === "production" // console.log(process.env.NODE_ENV, "NODE_ENV") onMounted(() => { // isNeedLogin.value = false - if (!isProduction) isNeedLogin.value = false - else determineIsLogin() + // if (!isProduction) isNeedLogin.value = false + // else determineIsLogin() + + window["userInfoWin"] = { + "username": "", + "uid": 256624, + "uin": 4171117, + "avatar": "https://oss.gter.net/avatar/97KwEWQHYuMQGDnFqkimXF9SHKuGwVV5zW-tYWFjYQ~~?istype=1&random=HHfurzyTXnzb", + "messagenum": 0, + "newprompt": 0, + "todaysigned": 0, + } + + determineIsLogin() }) let isNeedLogin = ref(true) // 是否需要登录状态 +let userInfoWin = ref({}) + +provide("userInfoWin", userInfoWin) + // 判断是否登录状态 const determineIsLogin = () => { let count = 0 @@ -28,6 +44,7 @@ const determineIsLogin = () => { if (Object.keys(window["userInfoWin"]).length !== 0) { clearInterval(timer) if (window["userInfoWin"]["uid"]) isNeedLogin.value = false + userInfoWin.value = window["userInfoWin"] } count++ if (count >= 10) clearInterval(timer) diff --git a/assets/img/arrow-white.svg b/assets/img/arrow-white.svg new file mode 100644 index 0000000..a918232 --- /dev/null +++ b/assets/img/arrow-white.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/components/DetailsArea.vue b/components/DetailsArea.vue index 7b71341..3e42274 100644 --- a/components/DetailsArea.vue +++ b/components/DetailsArea.vue @@ -1,7 +1,18 @@