This commit is contained in:
joylink_zhaoerwei 2023-08-28 15:37:14 +08:00
parent e35637524d
commit ae23f7de71

View File

@ -220,6 +220,7 @@ let alertDeviceList: DeviceConfigItem[] = [];
async function searchAlertDevice() { async function searchAlertDevice() {
try { try {
optionsAlertDevice.value = [];
const type = (saveAlertTypeData as never)[alertType.value]; const type = (saveAlertTypeData as never)[alertType.value];
alertDeviceList = await getDeviceByAlarmType(3, type); alertDeviceList = await getDeviceByAlarmType(3, type);
optionsAlertDevice.value = alertDeviceList.map((item) => item.name); optionsAlertDevice.value = alertDeviceList.map((item) => item.name);