feat: 前端界面

This commit is contained in:
Leon
2025-12-26 18:24:28 +08:00
parent fe292aa1c6
commit 14a905e194
8 changed files with 468 additions and 185 deletions

View File

@@ -7,7 +7,8 @@ export default defineConfig({
server: {
proxy: {
'/api': {
target: 'http://localhost:8080',
// Force IPv4 to avoid Windows resolving `localhost` -> `::1` (IPv6) and causing ECONNREFUSED
target: 'http://127.0.0.1:8080',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},