fix: 修复同步操作加载提示未隐藏的问题

This commit is contained in:
TsMask
2025-05-22 19:58:36 +08:00
parent 998318a543
commit 5b1e7be9ea

View File

@@ -561,7 +561,6 @@ function fnCancelConfirm() {
function fnSync() {
const hide = message.loading(t('common.loading'), 0);
listSync().then(res => {
hide();
if (res.code === RESULT_CODE_SUCCESS) {
message.success({
content: t('views.faultManage.activeAlarm.sysncSuss'),
@@ -574,6 +573,8 @@ function fnSync() {
duration: 2,
});
}
}).finally(()=>{
hide();
});
}