heyujie
2021-10-11 ae2d855c89ca722ac7309fdf1aa6ceed370e3b95
src/pages/cameraAccess/components/SceneRule.vue
@@ -156,7 +156,6 @@
<script>
import {
  saveCameraScene,
  getCameraSceneRule,
  deleteCameraScene
} from '@/api/scene'
import RuleEditor from "@/components/subComponents/RuleEditor";
@@ -251,9 +250,11 @@
      }
    },
    getSounds() {
      let _this = this;
      getSoundList().then(res => {
        if (res.success) {
          this.soundList = [{ id: "", name: "空", path: "" }].concat(res.data.list)
          //_this.soundList = [{ id: "", name: "空", path: "" }].concat(res.data.list)
          _this.soundList = [{ id: "", name: "空", path: "" }].concat(res.data)
        }
      }).catch(
        e => console.log(e)
@@ -275,6 +276,7 @@
        })
        return false;
      }
      debugger
      this.eventAudio.src = this.soundPath;
      if (this.togglePlay) {
        this.eventAudio.play();