Files
37duAutomation/desktop/electron-shell/frontend/vite.config.js
T
puddy 843ff244a6 feat: 新增多插件 UI 支持及运行日志集中回传功能
本次提交包含多项功能更新:
1. 为多个插件(xq0002/0003/0004/0008/0010/0011/0020/0031_xq0032/0033/0035/0037/0045_xq0046/0047/0048)新增 UI 界面及配置支持
2. 新增运行日志集中回传功能,客户端自动上传运行日志到中心机集中存储
3. 新增插件分类字段支持,用于场景库分组管理
4. 优化 xq0034/0037/0048 等插件的功能及描述
5. 修复控制面响应兼容问题,支持新旧版本数据格式
6. 新增 xq0033 插件的状态存储模块,用于历史记录管理
7. 优化 CRM 登录窗口模式,支持全屏置顶
2026-10-26 15:42:50 +08:00

22 lines
765 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// dev 时把 /api 与 /ws 代理到 FastAPI 后端,实现前后端分离开发
export default defineConfig({
plugins: [vue()],
server: {
port: 5173,
strictPort: true,
proxy: {
'/api': { target: 'http://127.0.0.1:8799', changeOrigin: true },
'/ws': { target: 'ws://127.0.0.1:8799', ws: true },
// 插件专属界面:运行台以同源 iframe 加载 /pui/<id>/,dev 下必须转给壳内服务
'/pui': { target: 'http://127.0.0.1:8799', changeOrigin: true },
},
},
build: {
// 构建产物直接输出到壳的渲染层目录(Electron 壳/CLI 服务以此为前端根)
outDir: '../renderer/dist',
emptyOutDir: true,
},
})