diff --git a/src/views/mapPage/realTimeMap/components-tool/equipmentToolDialog.vue b/src/views/mapPage/realTimeMap/components-tool/equipmentToolDialog.vue index 165090f2..2d70e096 100644 --- a/src/views/mapPage/realTimeMap/components-tool/equipmentToolDialog.vue +++ b/src/views/mapPage/realTimeMap/components-tool/equipmentToolDialog.vue @@ -127,6 +127,7 @@ const addDevice = () => { } //类型改变 const deviceTypeChange = async () => { + deviceInfo.value.deviceInfoId = '' getAllDeviceList() } const getAllDeviceList = async () => { @@ -167,7 +168,7 @@ const dialogClose = () => { const initAddForm = () => { deviceInfo.value.deviceInfoId = '' deviceInfo.value.deviceType = '' - getAllDeviceList() + allDeviceList.value = [] } defineExpose({ open }) // 提供 open 方法,用于打开弹窗