Showing
1 changed file
with
2 additions
and
2 deletions
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)) { | ... | ... |