Browse Source

数据还原到默认

jsonwang 3 years ago
parent
commit
7fa5a6cb5d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      BFFramework/Classes/Stuckpoint/View/PQSelecteMusicView.swift

+ 4 - 0
BFFramework/Classes/Stuckpoint/View/PQSelecteMusicView.swift

@@ -125,6 +125,10 @@ class PQSelecteMusicView: UIView {
     //插入数据
     func insertSearchMusic(model:PQVoiceModel) {
       
+        for oldModel in searchMusiceDatas {
+            oldModel.voiceStatue = .isNormal
+        }
+        
         model.voiceStatue = .isSelected
         searchMusiceDatas.insert(model, at: 0)