- 添加聊天流 API 和相关组件,实现 PPT 模板生成工具界面 - 新增数据抓取工具列表和抓取功能 - 优化模板选择和会话管理逻辑 - 实现消息列表和输入框功能 - 添加文件上传和下载支持
35 lines
877 B
TypeScript
35 lines
877 B
TypeScript
import { defineConfig } from '@vben/vite-config';
|
|
|
|
export default defineConfig(async () => {
|
|
return {
|
|
application: {},
|
|
vite: {
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
|
// mock代理目标地址
|
|
target: 'http://localhost:8081/api',
|
|
ws: true,
|
|
},
|
|
'/v1': {
|
|
target: 'http://localhost:8081/v1',
|
|
rewrite: (path) => path.replace(/^\/v1/, ''),
|
|
changeOrigin: true,
|
|
ws: true,
|
|
},
|
|
'/static/*.pptx': {
|
|
target: 'http://47.112.173.8:6802',
|
|
changeOrigin: true,
|
|
},
|
|
'/static/*.docx': {
|
|
target: 'http://47.112.173.8:6805',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
});
|