style: close弹窗 清除所有Notification

This commit is contained in:
rd
2025-07-21 16:43:17 +08:00
parent c7f2e78642
commit 923337b025

View File

@ -19,6 +19,8 @@
</template> </template>
<script setup> <script setup>
import { Notification } from '@arco-design/web-vue';
import ExportTask from './components/export-task'; import ExportTask from './components/export-task';
import ImportTask from './components/import-task'; import ImportTask from './components/import-task';
@ -52,7 +54,8 @@ const onClose = () => {
activeTab.value = '0'; activeTab.value = '0';
clearTimer(); clearTimer();
componentRef.value?.unloadComp?.() componentRef.value?.unloadComp?.();
Notification.clear();
visible.value = false; visible.value = false;
}; };
const clearTimer = () => { const clearTimer = () => {