hulinfei 3 éve
szülő
commit
b2d0467325
1 módosított fájl, 3 hozzáadás és 4 törlés
  1. 3 4
      src/views/schedule/video/compoent/detail.vue

+ 3 - 4
src/views/schedule/video/compoent/detail.vue

@@ -227,11 +227,10 @@ export default {
           this.settingData[0][i].active = true
         }
       }
-      var arr = []
+      this.settingData[1].splice(0, this.settingData[1].length)
       for (let i = 1; i < 26; i++) {
-        arr.push({ value: i + 'fps', active: false })
+        this.settingData[1].push({ value: i + 'fps', active: false })
       }
-      this.settingData[1] = arr
       for (let i = 0; i < this.settingData[1].length; i++) {
         if (this.settingData[1][i].value === data.frameRate) {
           this.settingData[1][i].active = true
@@ -292,7 +291,7 @@ export default {
 
       this.settingData[this.settingActive][index].active = !this.settingData[this.settingActive][index].active
       var arr = JSON.stringify(this.infoData)
-      // console.log(this.settingData[this.settingActive])
+      console.log(this.settingData[this.settingActive])
       if (this.settingActive === 0) {
         if (
           this.infoData.withHight !==