链接更换

This commit is contained in:
liuyalei 2024-03-14 09:35:17 +08:00
parent c1cb2c6e34
commit 37856a5ae1
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ export default defineConfig({
// rewrite: (path) => path.replace(/\/test/, ""), //重写真实路径,替换/api
},
"^/test": {
target: "http://192.168.2.86:8003/",
// target: "http://192.168.2.86:8003/",
target: "https://yx.cityme.com.cn/",
changeOrigin: true,
rewrite: path => path.replace(/^\/test/, '/test/main_serve/')
},