diff --git a/src/layouts/components/navbar/components/task-center-modal/index.vue b/src/layouts/components/navbar/components/task-center-modal/index.vue index c1898c6..9d24519 100644 --- a/src/layouts/components/navbar/components/task-center-modal/index.vue +++ b/src/layouts/components/navbar/components/task-center-modal/index.vue @@ -9,12 +9,12 @@ @cancel="onClose" centered > - - - + + +
- +
@@ -28,12 +28,12 @@ import ImportTask from './components/import-task'; const visible = ref(false); const componentRef = ref(null); -const activeTab = ref('0'); +const activeTab = ref('1'); let timer = null; const handleTabClick = (key) => { - activeTab.value = key; + // activeTab.value = key; nextTick(() => { getData(); }); @@ -44,13 +44,14 @@ const getData = () => { }; const open = () => { - getData(); + visible.value = true; + nextTick(() => { + getData(); + }); timer = setInterval(() => { getData(); }, 10000); - - visible.value = true; }; const onClose = () => { activeTab.value = '0';