@@ -1,2 +1,3 @@
-VITE_BASEURL = '/v1'
+VITE_BASEAPIURL = '/v1'
+VITE_BASEURL = '/'
VITE_HZYB_BASEURL = 'https://ybpctest.hzinsights.com/api'
+VITE_BASEAPIURL = '/yb_eta/v1'
+VITE_BASEURL = '/yb_eta/'
VITE_HZYB_BASEURL = 'https://yanbao.hzinsights.com/api'
@@ -8,7 +8,7 @@ declare module '*.vue' {
}
interface ImportMetaEnv {
- VITE_BASEURL: string;
+ VITE_BASEAPIURL: string;
VITE_HZYB_BASEURL:string;
@@ -8,7 +8,7 @@ interface IResponsePramas extends IUnknowObject {
Msg: string;
-const baseURL = import.meta.env.VITE_BASEURL;
+const baseURL = import.meta.env.VITE_BASEAPIURL;
const request: AxiosInstance = axios.create({
@@ -31,7 +31,7 @@ export const routes: AppRouteRecordRaw[] = [
];
const router = createRouter({
- history: createWebHistory(), //路由模式
+ history: createWebHistory(import.meta.env.VITE_BASEURL), //路由模式
routes,
});