|
|
@ -27,7 +27,7 @@ export default defineConfig(async ({ command, mode }: ConfigEnv): Promise<UserCo |
|
|
|
// The boolean type read by loadEnv is a string. This function can be converted to boolean type
|
|
|
|
// The boolean type read by loadEnv is a string. This function can be converted to boolean type
|
|
|
|
const viteEnv = wrapperEnv(env); |
|
|
|
const viteEnv = wrapperEnv(env); |
|
|
|
try { |
|
|
|
try { |
|
|
|
const res = await axios({ method: 'post', url: 'http://localhost:18085/jeecg-boot/sysconfiguration/sysConfiguration/findconfig' }); |
|
|
|
const res = await axios({ method: 'post', url: `${env.VITE_GLOB_DOMAIN_URL}/sysconfiguration/sysConfiguration/findconfig` }); |
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
viteEnv.VITE_GLOB_APP_TITLE = res.data.result.name; |
|
|
|
viteEnv.VITE_GLOB_APP_TITLE = res.data.result.name; |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|