feat: paragraph
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run

This commit is contained in:
wangdan-fit2cloud 2025-06-05 20:57:00 +08:00
parent 8f98b7188d
commit e9d7decef8
4 changed files with 20 additions and 3 deletions

View File

@ -0,0 +1,17 @@
const ParagraphRouter = {
path: '/paragraph/:id/:documentId',
name: 'Paragraph',
meta: { title: 'common.fileUpload.document', activeMenu: '/knowledge', breadcrumb: true },
component: () => import('@/layout/layout-template/SimpleLayout.vue'),
hidden: true,
children: [
{
path: '/paragraph/:id/:documentId',
name: 'Paragraph1',
meta: { activeMenu: '/knowledge' },
component: () => import('@/views/paragraph/index.vue'),
},
],
}
export default ParagraphRouter

View File

@ -65,7 +65,7 @@ const useLoginStore = defineStore('user', {
this.XPACK_LICENSE_IS_VALID = true
if (this.isEnterprise()) {
await this.theme()
// await this.theme()
} else {
this.themeInfo = {
...defaultPlatformSetting

View File

@ -768,7 +768,7 @@ function rowClickHandle(row: any, column: any) {
return
}
router.push({ path: `/dataset/${id}/${row.id}` })
router.push({ path: `/knowledge/${id}/${row.id}` })
}
/*

View File

@ -182,7 +182,7 @@
<script setup lang="ts">
import { reactive, ref, onMounted, computed } from 'vue'
import { useRoute } from 'vue-router'
import documentApi from '@/api/document'
import documentApi from '@/api/knowledge/document'
import paragraphApi from '@/api/knowledge/paragraph'
import ParagraphDialog from './component/ParagraphDialog.vue'
import SelectDocumentDialog from './component/SelectDocumentDialog.vue'