mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-06 13:27:43 +08:00
feat: refreshTask when open task log (#8489)
This commit is contained in:
parent
cad4ee824a
commit
3fc4d9557d
3 changed files with 5 additions and 0 deletions
|
@ -154,6 +154,7 @@ var WebUrlMap = map[string]struct{}{
|
|||
"/xpack/setting": {},
|
||||
"/xpack/node": {},
|
||||
"/xpack/waf/stat": {},
|
||||
"/xpack/exchange/file": {},
|
||||
}
|
||||
|
||||
var DynamicRoutes = []string{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue