mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
(fix)(supersonic-fe) fix the issue where there is no prompt when saving the dataset (#2152)
This commit is contained in:
@@ -99,6 +99,7 @@ const DatasetCreateForm: React.FC<ModelCreateFormModalProps> = forwardRef(
|
||||
setSaveLoading(false);
|
||||
if (code === 200) {
|
||||
onSubmit?.(queryData);
|
||||
message.success('保存成功');
|
||||
} else {
|
||||
message.error(msg);
|
||||
}
|
||||
|
||||
@@ -109,6 +109,7 @@ const ViewCreateFormModal: React.FC<ModelCreateFormModalProps> = ({
|
||||
setSaveLoading(false);
|
||||
if (code === 200) {
|
||||
onSubmit?.(queryData);
|
||||
message.success('保存成功');
|
||||
} else {
|
||||
message.error(msg);
|
||||
}
|
||||
|
||||
@@ -87,6 +87,7 @@ const ViewSearchFormModal: React.FC<ModelCreateFormModalProps> = ({
|
||||
setSaveLoading(false);
|
||||
if (code === 200) {
|
||||
onSubmit?.(queryData);
|
||||
message.success('保存成功');
|
||||
} else {
|
||||
message.error(msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user