VITE_GLOB_APP_TITLE

significative 2 months ago
parent b211c1356d
commit 91d40f949d
  1. 2
      jeecgboot-vue3-master/vite.config.ts

@ -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 {

Loading…
Cancel
Save