| | |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | | import { ref, reactive, nextTick, onBeforeMount } from 'vue'; |
| | | import { ref, reactive, nextTick, onBeforeMount, onMounted, onBeforeUnmount } from "vue"; |
| | | import addAgent from '@/views/dmx/IntelligentAgent/components/addAgent.vue'; |
| | | import editAgent from '@/views/dmx/IntelligentAgent/components/editAgent.vue'; |
| | | import { kbdocumentrm, queryKbList } from '@/api/kbList'; |
| | |
| | | import { deletedialog, querydialogList } from '@/api/Agent'; |
| | | import useLoading from '@/hooks/loading'; |
| | | const { loading, setLoading } = useLoading(true); |
| | | import EventBus from '@/utils/EventBus'; |
| | | |
| | | let count = 5; |
| | | const activeKey = ref(1); |
| | |
| | | onBeforeMount(() => { |
| | | queryList(); |
| | | }); |
| | | onMounted(()=>{ |
| | | EventBus.on('queryList',()=>{ |
| | | queryList(); |
| | | }) |
| | | }) |
| | | onBeforeUnmount(()=>{ |
| | | EventBus.off('queryList') |
| | | }) |
| | | </script> |
| | | |
| | | <script lang="ts"> |