diff --git a/core/constant/common.go b/core/constant/common.go index 422c5f6da..638140607 100644 --- a/core/constant/common.go +++ b/core/constant/common.go @@ -154,6 +154,7 @@ var WebUrlMap = map[string]struct{}{ "/xpack/setting": {}, "/xpack/node": {}, "/xpack/waf/stat": {}, + "/xpack/exchange/file": {}, } var DynamicRoutes = []string{ diff --git a/frontend/src/components/task-list/index.vue b/frontend/src/components/task-list/index.vue index 891e335d9..2da70670d 100644 --- a/frontend/src/components/task-list/index.vue +++ b/frontend/src/components/task-list/index.vue @@ -49,6 +49,7 @@ import { searchTasks } from '@/api/modules/log'; import { reactive, ref } from '@vue/runtime-core'; import { Log } from '@/api/interface/log'; import TaskLog from '@/components/log/task/index.vue'; +import bus from '@/global/bus'; const open = ref(false); const handleClose = () => { @@ -72,6 +73,7 @@ const req = reactive({ }); const search = async () => { + bus.emit('refreshTask', true); req.page = paginationConfig.currentPage; req.pageSize = paginationConfig.pageSize; loading.value = true; diff --git a/frontend/src/views/log/task/index.vue b/frontend/src/views/log/task/index.vue index 3a5038051..cb7062a87 100644 --- a/frontend/src/views/log/task/index.vue +++ b/frontend/src/views/log/task/index.vue @@ -51,6 +51,7 @@ import { searchTasks } from '@/api/modules/log'; import { onMounted, reactive, ref } from '@vue/runtime-core'; import { Log } from '@/api/interface/log'; import TaskLog from '@/components/log/task/index.vue'; +import bus from '@/global/bus'; const loading = ref(); const data = ref(); @@ -79,6 +80,7 @@ const search = async () => { paginationConfig.total = res.data.total; } catch (error) { } finally { + bus.emit('refreshTask', true); loading.value = false; } };