This commit is contained in:
2026-06-30 14:25:07 +08:00
18 changed files with 6309 additions and 57 deletions

View File

@@ -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,