chore: add demo profile and local api proxy

This commit is contained in:
王鹏
2026-07-07 17:08:46 +08:00
parent c2e46efdd9
commit d3840d621c
11 changed files with 362 additions and 3 deletions

2
admin-web/.env.example Normal file
View File

@@ -0,0 +1,2 @@
VITE_API_BASE_URL=
VITE_API_PROXY_TARGET=http://localhost:8080

View File

@@ -4,6 +4,12 @@ import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
server: {
port: 5173
port: 5173,
proxy: {
'/api': {
target: process.env.VITE_API_PROXY_TARGET || 'http://localhost:8080',
changeOrigin: true
}
}
}
})