This commit is contained in:
2026-07-26 23:14:54 +08:00
parent 344981c6d5
commit a49affbcf2
10 changed files with 770 additions and 166 deletions

View File

@@ -125,12 +125,12 @@ 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,
// // 保持路径不变
// rewrite: path => path,
// },
// '/api/v1': {
// target: 'http://localhost:8080',
// changeOrigin: true,