chore: v5 init【64ed9206】

This commit is contained in:
YunaiV
2025-03-18 13:06:04 +08:00
parent 504070f3eb
commit 83f6a0fbf7
6 changed files with 30 additions and 12 deletions

View File

@@ -6,11 +6,11 @@ export default defineConfig(async () => {
vite: {
server: {
proxy: {
'/api': {
'/admin-api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
rewrite: (path) => path.replace(/^\/admin-api/, ''),
// mock代理目标地址
target: 'http://localhost:5320/api',
target: 'http://localhost:48080/admin-api',
ws: true,
},
},