This commit is contained in:
2026-06-30 14:24:48 +08:00
parent 2061b3e361
commit d461476889
7 changed files with 118 additions and 22 deletions

View File

@@ -124,18 +124,18 @@ export default defineConfig({
server: {
proxy: {
// // 本地开发时将 /api/v1 的请求代理到 8080 端口
'/api/v1': {
target: 'http://localhost:8080',
changeOrigin: true,
// 保持路径不变
rewrite: path => path,
},
// '/api/v1': {
// target: 'https://console.tianyuanapi.com',
// target: 'http://localhost:8080',
// changeOrigin: true,
// // 保持路径不变
// rewrite: path => path,
// },
'/api/v1': {
target: 'https://console.tianyuanapi.com',
changeOrigin: true,
// 保持路径不变
rewrite: path => path,
},
},
},
})