feat: 改用axios调用真实API,添加/api代理,优化视图布局

This commit is contained in:
hyql 2026-07-11 08:09:06 +08:00
commit 5ba442561b
7 changed files with 484 additions and 22 deletions

View file

@ -19,6 +19,10 @@ export default defineConfig({
proxy: {
"/images": {
target: 'http://localhost:8888'
},
"/api": {
target: 'http://localhost:3000',
rewrite: path => path.replace(/^\/api/, '')
}
}
}