0.0.7.0
This commit is contained in:
@@ -21,10 +21,11 @@ export default function NewMemberPage() {
|
||||
const fatherId = searchParams.get('fatherId')
|
||||
const motherId = searchParams.get('motherId')
|
||||
const spouseId = searchParams.get('spouseId')
|
||||
const childId = searchParams.get('childId')
|
||||
const generation = searchParams.get('generation')
|
||||
const gender = searchParams.get('gender')
|
||||
|
||||
if (!fatherId && !motherId && !spouseId && !generation && !gender) return undefined
|
||||
if (!fatherId && !motherId && !spouseId && !childId && !generation && !gender) return undefined
|
||||
|
||||
const data: Partial<FamilyMember> = {}
|
||||
|
||||
@@ -52,6 +53,11 @@ export default function NewMemberPage() {
|
||||
data.spouseIds = [spouseId]
|
||||
}
|
||||
|
||||
// 处理子女信息(添加父母时使用)
|
||||
if (childId) {
|
||||
data.childrenIds = [childId]
|
||||
}
|
||||
|
||||
// 处理世代
|
||||
if (generation) {
|
||||
data.generation = parseInt(generation)
|
||||
|
||||
Reference in New Issue
Block a user