From 24a6b3c3028ed77bb079b2ff76a30179c1db6c51 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期一, 29 三月 2021 14:36:12 +0800 Subject: [PATCH] 修复算例管理. tasks为空时列表渲染出错的问题 --- src/pages/cameraAccess/components/CameraInfo.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/cameraAccess/components/CameraInfo.vue b/src/pages/cameraAccess/components/CameraInfo.vue index 58eee53..8da90b5 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 => { -- Gitblit v1.8.0