|
|
@@ -122,7 +122,7 @@
|
|
|
</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';
|
|
|
@@ -130,6 +130,7 @@
|
|
|
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);
|
|
|
@@ -212,6 +213,14 @@
|
|
|
onBeforeMount(() => {
|
|
|
queryList();
|
|
|
});
|
|
|
+ onMounted(()=>{
|
|
|
+ EventBus.on('queryList',()=>{
|
|
|
+ queryList();
|
|
|
+ })
|
|
|
+ })
|
|
|
+ onBeforeUnmount(()=>{
|
|
|
+ EventBus.off('queryList')
|
|
|
+ })
|
|
|
</script>
|
|
|
|
|
|
<script lang="ts">
|