|
|
@@ -13,6 +13,9 @@ import { omitHumanSchemaMap } from '@/domain/humanSpecificInfo';
|
|
|
import { RootState } from '@/states/store';
|
|
|
import { View } from '@/API/patient/viewActions';
|
|
|
import { checkPatientDuplicate } from './duplicateCheck';
|
|
|
+import { clearSelectedViews } from '@/states/patient/viewSelection';
|
|
|
+import storeOfRoot from '@/states/store';
|
|
|
+import { clearFormData } from '@/states/patient/register/formSlice';
|
|
|
|
|
|
dayjs.extend(utc);
|
|
|
|
|
|
@@ -105,7 +108,9 @@ export async function executeRegisterLogic(store: {
|
|
|
message.error(`注册失败: ${response.description}`);
|
|
|
return { success: false, views: [] };
|
|
|
}
|
|
|
-
|
|
|
+ //注册成功,清理
|
|
|
+ storeOfRoot.dispatch(clearFormData());
|
|
|
+ storeOfRoot.dispatch(clearSelectedViews());
|
|
|
console.log('Work registered successfully:', response);
|
|
|
message.info('Work registered successfully');
|
|
|
|