This commit is contained in:
Zyronon
2025-11-16 20:53:32 +08:00
parent 9032711601
commit 4f7ecbea29
17 changed files with 137 additions and 97 deletions

View File

@@ -14,15 +14,10 @@ const map = {
}
export const ENV = Object.assign(map['DEV'], common)
// export const IS_OFFICIAL = import.meta.env.DEV
// export let IS_LOGIN = true
export let IS_OFFICIAL = true
export let IS_LOGIN = (!!localStorage.getItem('token')) || false
export let CAN_REQUEST = IS_LOGIN && IS_OFFICIAL
export let AppEnv = {
TOKEN: localStorage.getItem('token') ?? '',
IS_OFFICIAL: true,
IS_OFFICIAL: false,
IS_LOGIN: false,
CAN_REQUEST: false
}