| | |
| | | <script> |
| | | import { |
| | | saveCameraScene, |
| | | getCameraSceneRule, |
| | | deleteCameraScene |
| | | } from '@/api/scene' |
| | | import RuleEditor from "@/components/subComponents/RuleEditor"; |
| | |
| | | } |
| | | }, |
| | | 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) |
| | |
| | | }) |
| | | return false; |
| | | } |
| | | debugger |
| | | this.eventAudio.src = this.soundPath; |
| | | if (this.togglePlay) { |
| | | this.eventAudio.play(); |