feat: 开发编辑工作台

This commit is contained in:
R524809
2026-08-14 18:27:45 +08:00
parent b27e42dc75
commit c18d70017e
50 changed files with 5496 additions and 57 deletions
+24
View File
@@ -0,0 +1,24 @@
import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
// 前端开发服务器,/api 代理到本地 FastAPIserver/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
port: 8900,
strictPort: true, // 端口被占用时直接报错,而不是自动改到别的端口
open: true, // 启动后自动打开浏览器
proxy: {
'/api': {
target: 'http://127.0.0.1:8800',
changeOrigin: true,
},
},
},
});