wuyanan

fix |> 修复直播详情直播间Tab点击图片查看后,返回后触发退出直播间详情问题

... ... @@ -64,6 +64,8 @@ export struct DetailPlayLiveCommon {
private AudioSuspension = new AudioSuspensionModel()
@State isShowAudioCom: boolean = false
///是否已经执行过pageShow
hasPageShow: boolean = false
build() {
Column() {
... ... @@ -89,6 +91,10 @@ export struct DetailPlayLiveCommon {
*/
getContentDetail(): Promise<void> {
return new Promise<void>((resolve, reject) => {
if (this.hasPageShow) {
return
}
this.hasPageShow = true
this.liveViewModel.getContentDetail(this.contentId, this.relId, this.relType)
.then(async (data: Array<ContentDetailDTO>) => {
// console.log(TAG, '查询视频详情用于评论展示 getContentDetail:', JSON.stringify(data));
... ...