src/views/ai/knowledge/document/form/modules/split-step.vue
@@ -3,7 +3,7 @@ import { computed, getCurrentInstance, inject, onMounted, ref } from 'vue'; import { IconifyIcon } from '..\..\..\..\..\..\packages\icons\src'; import { IconifyIcon } from '@vben/icons'; import { Button, @@ -57,8 +57,9 @@ splitLoading.value = true; try { // 调用后端分段接口,获取文档的分段内容、字符数和 Token 数 const url = typeof file.url === 'string' ? file.url : file.url?.url; file.segments = await splitContent( file.url, url, modelData.value.segmentMaxTokens, ); } catch (error) {