Commit 3793e252 authored by zhanglongbao's avatar zhanglongbao

fix

parent e649e8f8
# 接口域名
VITE_APP_BASE_URL = 'http://work-order-test.linanquan.com'
VITE_APP_BASE_URL = ''
......@@ -6,7 +6,7 @@ import { $toast } from "@/components/toast";
const external_token = getUrlKey("external_token") || "cr2pc8jsibf027753ppg";
const http = axios.create({
baseURL: "/api",
baseURL: "http://test-server.hzjiace.com:8080/test",
timeout: 5000,
});
......
......@@ -29,12 +29,12 @@ export default ({ mode }: any) => {
},
server: {
host: "0.0.0.0",
proxy: {
"/api": {
target: VITE_APP_BASE_URL,
changeOrigin: true,
},
},
// proxy: {
// "/api": {
// target: VITE_APP_BASE_URL,
// changeOrigin: true,
// },
// },
},
});
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment