feat(app): 启用Expo Updates自动更新功能,优化医疗记录上传流程与API集成

This commit is contained in:
richarjiang
2025-12-05 16:09:09 +08:00
parent 3d08721474
commit 74b49efe23
10 changed files with 279 additions and 32 deletions

View File

@@ -387,7 +387,7 @@ export const fetchMedicalRecords = createAsyncThunk(
*/
export const addNewMedicalRecord = createAsyncThunk(
'health/addMedicalRecord',
async (data: Omit<MedicalRecordItem, 'id'>, { rejectWithValue }) => {
async (data: Omit<MedicalRecordItem, 'id' | 'createdAt' | 'updatedAt'>, { rejectWithValue }) => {
try {
const result = await healthProfileApi.addMedicalRecord(data);
return result;