解决便携式设备角色没有治理树id取值失败问题
This commit is contained in:
@@ -176,12 +176,12 @@ const changeDevice = (val: any) => {
|
||||
arr2.map(item => {
|
||||
item.checked = false
|
||||
})
|
||||
treeRef1.value.setCurrentKey(arr1[0].id)
|
||||
treeRef1.value.setCurrentKey(arr1[0]?.id)
|
||||
} else {
|
||||
arr1.map(item => {
|
||||
item.checked = false
|
||||
})
|
||||
treeRef2.value.setCurrentKey(arr2[0].id)
|
||||
treeRef2.value.setCurrentKey(arr2[0]?.id)
|
||||
}
|
||||
}
|
||||
const onMenuCollapse = () => {
|
||||
|
||||
@@ -356,8 +356,8 @@ const handleaddDevice = () => {
|
||||
const deviceId: any = ref('')
|
||||
const lineId: any = ref('')
|
||||
const nodeClick = async (e: anyObj) => {
|
||||
deviceId.value = e.pid
|
||||
lineId.value = e.id
|
||||
deviceId.value = e?.pid
|
||||
lineId.value = e?.id
|
||||
if (!e) {
|
||||
loading.value = false
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user