feat(v3): Web 应用化基线(异步任务/SSE/llama-server 管理/Vue SPA 四页 + 设置页整页滚动修复)

This commit is contained in:
tzt
2026-09-01 08:31:47 +08:00
parent 8d36eeec59
commit 3bbdcb7cc7
60 changed files with 7236 additions and 1160 deletions
+27
View File
@@ -0,0 +1,27 @@
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
import { resolve } from 'path'
export default defineConfig({
plugins: [vue()],
base: '/static/',
resolve: {
alias: { '@': resolve(__dirname, 'src') },
},
server: {
proxy: {
// 开发时:前端同源请求(无 /api 前缀)代理到 FastAPI
'/chat': { target: 'http://localhost:8000', changeOrigin: true },
'/runs': { target: 'http://localhost:8000', changeOrigin: true },
'/review': { target: 'http://localhost:8000', changeOrigin: true },
'/api/metrics':{ target: 'http://localhost:8000', changeOrigin: true },
'/config': { target: 'http://localhost:8000', changeOrigin: true },
'/health': { target: 'http://localhost:8000', changeOrigin: true },
'/traces':{ target: 'http://localhost:8000', changeOrigin: true },
},
},
build: {
outDir: '../gateway/static',
emptyOutDir: true,
},
})