From e9d7decef8e573c06037dd183ca455d400315a58 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 5 Jun 2025 20:57:00 +0800 Subject: [PATCH] feat: paragraph --- ui/src/router/modules/paragraph.ts | 17 +++++++++++++++++ ui/src/stores/modules/user.ts | 2 +- ui/src/views/document/index.vue | 2 +- ui/src/views/paragraph/index.vue | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 ui/src/router/modules/paragraph.ts diff --git a/ui/src/router/modules/paragraph.ts b/ui/src/router/modules/paragraph.ts new file mode 100644 index 000000000..db2f64b85 --- /dev/null +++ b/ui/src/router/modules/paragraph.ts @@ -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 diff --git a/ui/src/stores/modules/user.ts b/ui/src/stores/modules/user.ts index 4989a5eb5..7ccb0dbcc 100644 --- a/ui/src/stores/modules/user.ts +++ b/ui/src/stores/modules/user.ts @@ -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 diff --git a/ui/src/views/document/index.vue b/ui/src/views/document/index.vue index fdf72a074..cfc811dfc 100644 --- a/ui/src/views/document/index.vue +++ b/ui/src/views/document/index.vue @@ -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}` }) } /* diff --git a/ui/src/views/paragraph/index.vue b/ui/src/views/paragraph/index.vue index 2db750959..aa7b3d999 100644 --- a/ui/src/views/paragraph/index.vue +++ b/ui/src/views/paragraph/index.vue @@ -182,7 +182,7 @@