减少冗余代码

This commit is contained in:
2026-05-14 15:41:00 +08:00
parent ae4cf4540b
commit fa0c718c8b
15 changed files with 802 additions and 439 deletions

View File

@@ -19,9 +19,10 @@ export default defineConfig({
server: {
port: 8080, // 前端启动的端口
proxy: {
'/api': { // 所有以api开头的请求都会被代理
'/api': {
target: 'http://localhost',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
}
}
}