mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-18 17:46:38 +08:00
fix(projects): 修复网络请求错误空信息的提示
This commit is contained in:
parent
225c4fe022
commit
ff9216b621
@ -22,7 +22,9 @@ export function showErrorMsg(error: RequestServiceError) {
|
||||
if (!NO_ERROR_MSG_CODE.includes(error.code)) {
|
||||
if (!hasErrorMsg(error)) {
|
||||
addErrorMsg(error);
|
||||
if (error.msg) {
|
||||
window.$message?.error(error.msg, { duration: ERROR_MSG_DURATION });
|
||||
}
|
||||
setTimeout(() => {
|
||||
removeErrorMsg(error);
|
||||
}, ERROR_MSG_DURATION);
|
||||
|
Loading…
Reference in New Issue
Block a user