Skip to content

Commit e9d7dec

Browse files
feat: paragraph
1 parent 8f98b71 commit e9d7dec

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

ui/src/router/modules/paragraph.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const ParagraphRouter = {
2+
path: '/paragraph/:id/:documentId',
3+
name: 'Paragraph',
4+
meta: { title: 'common.fileUpload.document', activeMenu: '/knowledge', breadcrumb: true },
5+
component: () => import('@/layout/layout-template/SimpleLayout.vue'),
6+
hidden: true,
7+
children: [
8+
{
9+
path: '/paragraph/:id/:documentId',
10+
name: 'Paragraph1',
11+
meta: { activeMenu: '/knowledge' },
12+
component: () => import('@/views/paragraph/index.vue'),
13+
},
14+
],
15+
}
16+
17+
export default ParagraphRouter

ui/src/stores/modules/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const useLoginStore = defineStore('user', {
6565
this.XPACK_LICENSE_IS_VALID = true
6666

6767
if (this.isEnterprise()) {
68-
await this.theme()
68+
// await this.theme()
6969
} else {
7070
this.themeInfo = {
7171
...defaultPlatformSetting

ui/src/views/document/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ function rowClickHandle(row: any, column: any) {
768768
return
769769
}
770770
771-
router.push({ path: `/dataset/${id}/${row.id}` })
771+
router.push({ path: `/knowledge/${id}/${row.id}` })
772772
}
773773
774774
/*

ui/src/views/paragraph/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
<script setup lang="ts">
183183
import { reactive, ref, onMounted, computed } from 'vue'
184184
import { useRoute } from 'vue-router'
185-
import documentApi from '@/api/document'
185+
import documentApi from '@/api/knowledge/document'
186186
import paragraphApi from '@/api/knowledge/paragraph'
187187
import ParagraphDialog from './component/ParagraphDialog.vue'
188188
import SelectDocumentDialog from './component/SelectDocumentDialog.vue'

0 commit comments

Comments
 (0)