重构前端错误提示

This commit is contained in:
whyour
2022-09-22 23:59:23 +08:00
parent e274d3e2f9
commit f2fea47336
33 changed files with 347 additions and 363 deletions
-4
View File
@@ -68,8 +68,6 @@ export default function () {
} else {
getUser();
}
} else {
message.error(data);
}
})
.catch((error) => {
@@ -87,8 +85,6 @@ export default function () {
if (location.pathname === '/') {
history.push('/crontab');
}
} else {
message.error(data);
}
needLoading && setLoading(false);
})