Skip to content

Commit 992d859

Browse files
committed
fix error tips
1 parent b6a0640 commit 992d859

File tree

1 file changed

+3
-3
lines changed
  • web/packages/shared/common/service

1 file changed

+3
-3
lines changed

web/packages/shared/common/service/api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,6 @@ const action = function (url, data, option) {
421421
Notice.error({desc: msg, title: '错误提示', duration: 4});
422422
throw error;
423423
}
424-
setTimeout(() => {
425-
lastMsg = ''
426-
}, 4000)
427424
}
428425
if (error.message === API_ERR_MSG || error.msg === API_ERR_MSG) {
429426
if (showApiErrorTips) {
@@ -436,6 +433,9 @@ const action = function (url, data, option) {
436433
} else {
437434
showErrMsg()
438435
}
436+
setTimeout(() => {
437+
lastMsg = ''
438+
}, 4000)
439439
});
440440
};
441441

0 commit comments

Comments
 (0)