fix: 优化用户列表界面读取数据生命周期
This commit is contained in:
parent
f643be7a6a
commit
c80ab32e5d
@ -208,11 +208,8 @@ struct UserInfoPage {
|
||||
|
||||
}
|
||||
|
||||
aboutToAppear() {
|
||||
async aboutToAppear() {
|
||||
this.avPlayer = new VoiceAnnounce(this.context);
|
||||
}
|
||||
|
||||
async onPageShow() {
|
||||
this.isExamStart = false
|
||||
this.startExam = false
|
||||
this.updateTimeLimit = false
|
||||
@ -303,8 +300,9 @@ struct UserInfoPage {
|
||||
|
||||
}
|
||||
|
||||
async onPageHide(): Promise<void> {
|
||||
async aboutToDisappear(): Promise<void> {
|
||||
CenterUDPBusinessInstance.offMsg(this.onCenterMsg)
|
||||
this.outClick()
|
||||
}
|
||||
|
||||
//身份证读卡器初始化
|
||||
@ -952,10 +950,6 @@ struct UserInfoPage {
|
||||
}
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
this.outClick()
|
||||
}
|
||||
|
||||
outClick() {
|
||||
clearInterval(this.interval)
|
||||
this.stopDeviceById()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user