变更url

This commit is contained in:
gyq
2025-09-29 11:10:22 +08:00
parent 096f591123
commit 3edcddbac9
5 changed files with 12 additions and 12 deletions

View File

@@ -8,13 +8,13 @@ export default defineConfig({
server: {
proxy: {
'/server3': {
target: 'http://101.37.12.135:8080', // 目标服务
target: 'http://192.168.1.42', // 目标服务
changeOrigin: true,
rewrite: path => path.replace(/^\/server3/, ''),
},
"/ysk" : {
// 需要被代理的后台地址
"target" : "http://192.168.1.31",
"target" : "http://192.168.1.42",
"changeOrigin": true,
rewrite: (path) => path.replace(/^\/ysk/, '')
},