This commit is contained in:
yj 2024-11-29 17:58:08 +08:00
parent 2a320156f5
commit 782fc7150e
1 changed files with 14 additions and 6 deletions

View File

@ -36,12 +36,20 @@ Page({
that.setData({
historicalList: res.data
})
if (that.data.meetingForm.roomNum) {
that.setData({
meetingForm: {
roomName: res.data[res.data.length - 1].nickName
},
})
} else {
that.setData({
meetingForm: {
roomNum: res.data[res.data.length - 1].roomNum,
roomName: res.data[res.data.length - 1].nickName
},
})
}
},
})
},