feat: 完善Dify知识库管理召回测试模块,优化知识库上传文件时的分段配置设置

This commit is contained in:
PingChuan
2025-12-03 12:03:09 +08:00
parent 0f49426a2e
commit a13f3b3635
29 changed files with 4016 additions and 1880 deletions
+24 -2
View File
@@ -53,7 +53,7 @@ export default defineConfig({
server: {
host: '0.0.0.0',
// port: 5173,
port: Number(process.env.PORT) || 5173,
port: Number(process.env.PORT) || 51703,
open: true,
// open: false,
allowedHosts: ['nas.7bm.co', 'localhost', '127.0.0.1'], // 允许的主机名列表1
@@ -69,6 +69,28 @@ export default defineConfig({
// 防止依赖预构建时触发页面刷新导致路由中断
force: false,
// 预构建这些依赖,避免首次加载时出现重新构建
include: ['react-pdf', 'pdfjs-dist', 'dayjs', '@remix-run/node', 'react-dom', 'axios', 'dayjs/plugin/utc', '@remix-run/react', 'react-router-dom', 'jszip', 'ahooks', 'antd', 'immer', '@ant-design/icons', 'react-markdown', 'remark-math', 'remark-breaks', 'rehype-katex', 'remark-gfm'],
include: [
'react-pdf',
'pdfjs-dist',
'dayjs',
'@remix-run/node',
'react-dom',
'axios',
'dayjs/plugin/utc',
'@remix-run/react',
'react-router-dom',
'jszip',
'ahooks',
'antd',
'immer',
'@ant-design/icons',
'react-markdown',
'remark-math',
'remark-breaks',
'rehype-katex',
'remark-gfm',
// Ant Design X 相关依赖
'@ant-design/x',
],
},
});