no message
This commit is contained in:
14
app.vue
14
app.vue
@@ -12,7 +12,7 @@
|
||||
<script setup>
|
||||
const route = useRoute()
|
||||
// 是否是 生产环境
|
||||
const isProduction = import.meta.env.NODE_ENV === "production"
|
||||
// const isProduction = import.meta.env.NODE_ENV === "production"
|
||||
|
||||
// watchEffect(() => {
|
||||
// if (typeof window !== "undefined" && route.path) {
|
||||
@@ -28,20 +28,10 @@ const isProduction = import.meta.env.NODE_ENV === "production"
|
||||
// })
|
||||
|
||||
onMounted(() => {
|
||||
console.log("isProduction", isProduction)
|
||||
// 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) // 是否需要登录状态
|
||||
|
||||
Reference in New Issue
Block a user