mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-02 02:59:33 +08:00
重构前端错误提示
This commit is contained in:
1 parent
e274d3e2f9
commit
f2fea47336
33 files changed
+347
-363
No files matched your search
@@ -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);
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user