+
@@ -167,8 +167,9 @@ const title = ref('')
const search = ref('')
const searchType = ref('title')
-const handleClick = (e: MouseEvent) => {
+const handleClick = (e: MouseEvent, ele: any) => {
e.preventDefault()
+ document.querySelector(`${ele}`).scrollIntoView({ behavior: 'smooth', block: 'start' })
}
// 批量操作
diff --git a/ui/src/views/shared/document-shared/index.vue b/ui/src/views/shared/document-shared/index.vue
index d825380892a..c0849c42575 100644
--- a/ui/src/views/shared/document-shared/index.vue
+++ b/ui/src/views/shared/document-shared/index.vue
@@ -607,9 +607,11 @@ const title = ref('')
const SelectknowledgeDialogRef = ref()
const exportDocument = (document: any) => {
- documentApi.exportDocument(document.name, document.knowledge_id, document.id, loading).then(() => {
- MsgSuccess(t('common.exportSuccess'))
- })
+ documentApi
+ .exportDocument(document.name, document.knowledge_id, document.id, loading)
+ .then(() => {
+ MsgSuccess(t('common.exportSuccess'))
+ })
}
const exportDocumentZip = (document: any) => {
documentApi
@@ -717,8 +719,7 @@ const closeInterval = () => {
}
function syncDocument(row: any) {
- console.log('row', row)
- if (row.type === '1') {
+ if (+row.type === 1) {
syncWebDocument(row)
} else {
syncLarkDocument(row)