mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-25 02:58:43 +08:00
fix: ci ok
This commit is contained in:
parent
9650122736
commit
df1fceb291
@ -25,12 +25,10 @@ const getVariableName = (title: string) => {
|
|||||||
|
|
||||||
export function getAppEnvConfig() {
|
export function getAppEnvConfig() {
|
||||||
const ENV_NAME = getVariableName(import.meta.env.VITE_GLOB_APP_TITLE);
|
const ENV_NAME = getVariableName(import.meta.env.VITE_GLOB_APP_TITLE);
|
||||||
console.log(ENV_NAME);
|
|
||||||
const ENV = import.meta.env.DEV
|
const ENV = import.meta.env.DEV
|
||||||
? // Get the global configuration (the configuration will be extracted independently when packaging)
|
? // Get the global configuration (the configuration will be extracted independently when packaging)
|
||||||
(import.meta.env as unknown as GlobEnvConfig)
|
(import.meta.env as unknown as GlobEnvConfig)
|
||||||
: (window[ENV_NAME] as unknown as GlobEnvConfig);
|
: (window[ENV_NAME] as unknown as GlobEnvConfig);
|
||||||
console.log(ENV);
|
|
||||||
const { VITE_GLOB_APP_TITLE, VITE_GLOB_API_URL, VITE_GLOB_API_URL_PREFIX, VITE_GLOB_UPLOAD_URL } =
|
const { VITE_GLOB_APP_TITLE, VITE_GLOB_API_URL, VITE_GLOB_API_URL_PREFIX, VITE_GLOB_UPLOAD_URL } =
|
||||||
ENV;
|
ENV;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user