Commit 9a37e8da04f8ebff17c556431b8d1c6f72dbe8ee

Authored by fengtao
1 parent 350f551e

pref:优化场景联动部分代码 根据产品获取对应设备

1 1 export default () => {
2 2 //根据产品获取对应属性
3 3 const useByProductGetAttribute = (res, callback, opt) => {
4   - const getAttr = (opt) =>
  4 + const getAttr = (options) =>
5 5 callback({
6 6 field: 'type2',
7 7 componentProps: {
8 8 placeholder: '请选择属性',
9   - opt,
  9 + options,
10 10 },
11 11 });
12 12 if (Array.isArray(res)) {
... ...