完善前端vue项目

This commit is contained in:
BBIT-Kai
2025-09-05 09:33:55 +08:00
parent a4e5517e65
commit aa25f914ab
20 changed files with 43 additions and 1173 deletions
@@ -15,9 +15,10 @@ export function useAppConfig(
? window._VBEN_ADMIN_PRO_APP_CONF_
: (env as VbenAdminProAppConfigRaw);
const { VITE_GLOB_API_URL } = config;
const { VITE_GLOB_API_URL, VITE_GLOB_API_URL_PY } = config;
return {
apiURL: VITE_GLOB_API_URL,
pyApiURL: VITE_GLOB_API_URL_PY,
};
}
+2
View File
@@ -9,10 +9,12 @@ declare module 'vue-router' {
export interface VbenAdminProAppConfigRaw {
VITE_GLOB_API_URL: string;
PY_VITE_GLOB_API_URL: string;
}
export interface ApplicationConfig {
apiURL: string;
pyApiURL: string;
}
declare global {