zhaojunkai

音乐详情-切换页面后释放音乐

@@ -47,6 +47,9 @@ export struct AudioDetailComponent { @@ -47,6 +47,9 @@ export struct AudioDetailComponent {
47 this.duration = totalSeconds 47 this.duration = totalSeconds
48 } 48 }
49 } 49 }
  50 + onPageHide() {
  51 + this.playerController?.pause();
  52 + }
50 build() { 53 build() {
51 Row() { 54 Row() {
52 Column() { 55 Column() {