调整端口,调整测试后端路径

This commit is contained in:
ywyonui 2025-06-23 10:11:08 +08:00
parent 122392cd45
commit be61bbe153
3 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/.idea/ /.idea/
*/.DS_Store */.DS_Store
/dist/ /dist/
.vscode

View File

@ -1,5 +1,5 @@
// const ip: string = "119.29.194.155:8893"; const ip: string = "127.0.0.1:8897";
const ip: string = "yufangzc.com"; // const ip: string = "yufangzc.com";
const fwqip: string = "yufangzc.com"; const fwqip: string = "yufangzc.com";
//打包服务器接口代理标识 //打包服务器接口代理标识
const SERVERAGENT: string = "/jzd-api"; const SERVERAGENT: string = "/jzd-api";
@ -11,7 +11,7 @@ export const BASE_URL: string =
// WebSocket地址 // WebSocket地址
export const BASE_WS_URL: string = `wss://${ip}`; export const BASE_WS_URL: string = `wss://${ip}`;
//图片地址 //图片地址
export const BASE_IMAGE_URL: string = process.env.NODE_ENV == "development" ? `http://${ip}` : `http://${fwqip}`; export const BASE_IMAGE_URL: string = process.env.NODE_ENV == "development" ? `https://${ip}` : `http://${fwqip}`;
//存token的key //存token的key
export const AUTH_KEY: string = "satoken"; export const AUTH_KEY: string = "satoken";
//token过期返回状态码 //token过期返回状态码

View File

@ -15,6 +15,7 @@ export default defineConfig({
rewrite: (path) => path.replace(/^\/base/, ""), rewrite: (path) => path.replace(/^\/base/, ""),
}, },
}, },
port: 5139,
}, },
plugins: [ plugins: [
//c 为class 例如 class="wi-10" //c 为class 例如 class="wi-10"