重构前端错误提示

This commit is contained in:
whyour committed 2022-09-22 23:59:23 +08:00
1 parent e274d3e2f9
commit f2fea47336
33 files changed
+347 -363

No files matched your search

-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);
})