From 5ec1554f347f91bcd1fbc8e7550fde8edec5a3d3 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期五, 21 五月 2021 15:00:02 +0800 Subject: [PATCH] 修复运行时提示的错误 --- src/pages/cameraAccess/components/CameraInfo.vue | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/cameraAccess/components/CameraInfo.vue b/src/pages/cameraAccess/components/CameraInfo.vue index 72cec9a..bba682a 100644 --- a/src/pages/cameraAccess/components/CameraInfo.vue +++ b/src/pages/cameraAccess/components/CameraInfo.vue @@ -268,7 +268,7 @@ getSounds() { getSoundList().then(res => { if (res.success) { - this.soundList = res.data.list + this.soundList = res.data; } }).catch( e => console.log(e) @@ -336,8 +336,9 @@ this.resolutionList = list this.sensors = res.data.sensors } + this.$nextTick(() => { - this.initFormData() + this.initFormData(); Object.assign(this.form, res.data) this.soundList.forEach(element => { @@ -400,7 +401,7 @@ let {evt,treeId} = _this.$root.$children[0].$refs['leftTree'].$refs.tree; console.log(evt,treeId) // this.$nextTick(()=>{ - _this.$root.$children[0].$refs['leftTree'].$refs.tree.itemClick(evt,treeId,_this.TreeDataPool.selectedNode) + //_this.$root.$children[0].$refs['leftTree'].$refs.tree.handleCreated() // }) } else { -- Gitblit v1.8.0