src/pages/cameraAccess/components/SceneRule.vue
@@ -251,9 +251,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 +277,7 @@ }) return false; } debugger this.eventAudio.src = this.soundPath; if (this.togglePlay) { this.eventAudio.play();