Commit e6c036eff11881c6650caf8e138a5645914584d3

Authored by fengtao
1 parent b6b555df

perf: 云端环境中,编辑数据流转,数据源从产品选择到设备,数据源中的设备不应该默认全部回显了,导致点击下一步提示

... ... @@ -13,7 +13,7 @@
13 13 import { BasicTable, useTable } from '/@/components/Table';
14 14 import { FETCH_SETTING } from '/@/components/Table/src/const';
15 15 import { useDesign } from '/@/hooks/web/useDesign';
16   - import { isFunction } from '/@/utils/is';
  16 + import { isArray, isFunction } from '/@/utils/is';
17 17
18 18 interface DeviceModel extends RawDeviceModal {
19 19 disabled?: boolean;
... ... @@ -225,7 +225,7 @@
225 225 return;
226 226 }
227 227 const { items } = await devicePage({ page: 1, pageSize: 10, ...params, selected: true });
228   - selectedTotalList.value = items;
  228 + selectedTotalList.value = isArray(props.value) && props.value.length === 0 ? [] : items;
229 229 });
230 230 </script>
231 231
... ...