Jelajahi Sumber

注册时,默认的动物是狗

sw 6 hari lalu
induk
melakukan
fbac61b24a
1 mengubah file dengan 12 tambahan dan 1 penghapusan
  1. 12 1
      src/states/patientTypeSlice.ts

+ 12 - 1
src/states/patientTypeSlice.ts

@@ -18,7 +18,18 @@ const initialState: PatientTypeState = {
   items: [],
   loading: false,
   error: null,
-  current: null,
+  current: {
+    id: '0',
+    patient_type_id: 'Dog',
+    patient_type_name: 'Dog',
+    patient_type_local: 'Dog',
+    //patient_type_name_local:"Dog",
+    patient_type_description: 'Dog',
+    sort: 2,
+    is_enabled: true,
+    product: 'VETDROS',
+    is_pre_install: true,
+  },
 };
 
 export const setCurrentPatientType = createAction<PatientType | null>(