feat: 初始化 ChatOA 企业协作 OA 系统

This commit is contained in:
2026-08-20 19:36:07 +08:00
commit 6d7a1f6e63
90 changed files with 20067 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// 浏览器调试与 Electron 开发共用
export default defineConfig({
plugins: [react()],
base: './',
server: {
port: 5173,
host: '127.0.0.1',
proxy: {
'/api': 'http://localhost:3000',
'/uploads': 'http://localhost:3000',
'/socket.io': { target: 'http://localhost:3000', ws: true },
},
},
build: {
outDir: 'dist',
emptyOutDir: true,
},
});