mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 09:34:31 +08:00
重构前端错误提示
This commit is contained in:
@@ -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