| | |
| | | import type { AiKnowledgeSegmentApi } from '#/api/ai/knowledge/segment'; |
| | | |
| | | import { onMounted } from 'vue'; |
| | | import { useRoute } from 'vue-router'; |
| | | import { useRoute, useRouter } from 'vue-router'; |
| | | |
| | | import { confirm, Page, useVbenModal } from '@vben/common-ui'; |
| | | import { DICT_TYPE } from '@vben/constants'; |
| | |
| | | import Form from './modules/form.vue'; |
| | | |
| | | const route = useRoute(); |
| | | const router = useRouter(); |
| | | |
| | | const [FormModal, formModalApi] = useVbenModal({ |
| | | connectedComponent: Form, |
| | |
| | | <template> |
| | | <Page auto-content-height> |
| | | <FormModal @success="handleRefresh" /> |
| | | <div class="mb-2"> |
| | | <a-button type="default" @click="router.back()"> |
| | | 返回上一页 |
| | | </a-button> |
| | | </div> |
| | | <Grid table-title="分段列表"> |
| | | <template #toolbar-tools> |
| | | <TableAction |