feat: paragraph
This commit is contained in:
parent
8f98b7188d
commit
e9d7decef8
17
ui/src/router/modules/paragraph.ts
Normal file
17
ui/src/router/modules/paragraph.ts
Normal 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
|
||||||
@ -65,7 +65,7 @@ const useLoginStore = defineStore('user', {
|
|||||||
this.XPACK_LICENSE_IS_VALID = true
|
this.XPACK_LICENSE_IS_VALID = true
|
||||||
|
|
||||||
if (this.isEnterprise()) {
|
if (this.isEnterprise()) {
|
||||||
await this.theme()
|
// await this.theme()
|
||||||
} else {
|
} else {
|
||||||
this.themeInfo = {
|
this.themeInfo = {
|
||||||
...defaultPlatformSetting
|
...defaultPlatformSetting
|
||||||
|
|||||||
@ -768,7 +768,7 @@ function rowClickHandle(row: any, column: any) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
router.push({ path: `/dataset/${id}/${row.id}` })
|
router.push({ path: `/knowledge/${id}/${row.id}` })
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -182,7 +182,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref, onMounted, computed } from 'vue'
|
import { reactive, ref, onMounted, computed } from 'vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import documentApi from '@/api/document'
|
import documentApi from '@/api/knowledge/document'
|
||||||
import paragraphApi from '@/api/knowledge/paragraph'
|
import paragraphApi from '@/api/knowledge/paragraph'
|
||||||
import ParagraphDialog from './component/ParagraphDialog.vue'
|
import ParagraphDialog from './component/ParagraphDialog.vue'
|
||||||
import SelectDocumentDialog from './component/SelectDocumentDialog.vue'
|
import SelectDocumentDialog from './component/SelectDocumentDialog.vue'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user