fix; 修改 asset 编辑报错的问题

This commit is contained in:
zhangyu
2021-09-15 15:17:01 +08:00
parent 1bab37695f
commit 23f080f9da

View File

@@ -425,7 +425,9 @@ export default {
if (n.id) {
this.lockModelInputValue = `${n.brand.name} / ${n.model.name}`
}
this.$refs.locationCascader.initComponet({ cabinet: n.cabinet, dc: n.dc, u: [n.cabinetStart, n.cabinetEnd] })
if (this.$refs.locationCascader) {
this.$refs.locationCascader.initComponet({ cabinet: n.cabinet, dc: n.dc, u: [n.cabinetStart, n.cabinetEnd] })
}
})
}
},