From c7d99f5e11c4cf0667f67b8170e1c585db2e2016 Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期六, 08 二月 2025 15:34:15 +0800 Subject: [PATCH] Merge branch '2.0.1' of http://139.186.142.91:10010/r/productDev/funingyunwei into 2.0.1 --- admin/src/views/operation/components/deviceEdit.vue | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/admin/src/views/operation/components/deviceEdit.vue b/admin/src/views/operation/components/deviceEdit.vue index 1abaeb7..f727966 100644 --- a/admin/src/views/operation/components/deviceEdit.vue +++ b/admin/src/views/operation/components/deviceEdit.vue @@ -325,13 +325,17 @@ detailById(id).then(res => { this.param = res this.param.rooms = [res.projectId, res.buildingId, res.floorId, res.roomId] - this.param.multifileList = res.multifileList.map(item => { - return { - ...item, - createUserName: item.userName, - createTime: item.createDate - } - }) + console.log(this.param.rooms) + if (res.multifileList && res.multifileList.length > 0) { + this.param.multifileList = res.multifileList.map(item => { + return { + ...item, + createUserName: item.userName, + createTime: item.createDate + } + }) + } + this.changeProject() this.getHouseTree() const cateId = this.param.cateId || '' setTimeout(() => { -- Gitblit v1.9.3