Merge branch 'main' of http://1.117.67.95:3000/ZhangRongHong/tyapi-frontend
This commit is contained in:
@@ -121,9 +121,16 @@ export default defineConfig({
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
server: {
|
||||
proxy: {
|
||||
// // 本地开发时将 /api/v1 的请求代理到 8080 端口
|
||||
'/api/v1': {
|
||||
target: 'http://localhost:8080',
|
||||
changeOrigin: true,
|
||||
// 保持路径不变
|
||||
rewrite: path => path,
|
||||
},
|
||||
// '/api/v1': {
|
||||
// target: 'http://localhost:8080',
|
||||
// changeOrigin: true,
|
||||
|
||||
Reference in New Issue
Block a user