完善前端vue项目
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Vendored
+2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user