mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-12 19:30:48 +08:00
重构前端错误提示
This commit is contained in:
@@ -66,9 +66,7 @@ const ViewCreateModal = ({
|
||||
},
|
||||
);
|
||||
|
||||
if (code !== 200) {
|
||||
message.error(data);
|
||||
} else {
|
||||
if (code === 200) {
|
||||
handleCancel(data);
|
||||
}
|
||||
setLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user