diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index ea3f06f..92005f7 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -220,6 +220,7 @@ let alertDeviceList: DeviceConfigItem[] = []; async function searchAlertDevice() { try { + optionsAlertDevice.value = []; const type = (saveAlertTypeData as never)[alertType.value]; alertDeviceList = await getDeviceByAlarmType(3, type); optionsAlertDevice.value = alertDeviceList.map((item) => item.name);