- 新增 platform API 端点和存储 - 新增 llama_factory 适配器 - 新增前端 compute、guide、system 等视图页面 - 新增 echarts 插件和 mock 数据 - 更新 Docker 配置、后端配置及文档 - 更新前端路由、API、侧边栏等组件 Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
856 B
TypeScript
35 lines
856 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
import Components from 'unplugin-vue-components/vite'
|
|
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
|
import path from 'node:path'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
AutoImport({
|
|
resolvers: [ElementPlusResolver({ importStyle: 'css' })],
|
|
}),
|
|
Components({
|
|
resolvers: [ElementPlusResolver({ importStyle: 'css' })],
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 16801,
|
|
proxy: {
|
|
// Frontend uses /api and proxies to the local five-digit backend port.
|
|
'/api': {
|
|
target: 'http://localhost:17861',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|