src/tabviews/custom/components/module/voucher/index.jsx
@@ -12,7 +12,6 @@ class VoucherModule extends Component { static propTpyes = { BID: PropTypes.any, // 父级Id config: PropTypes.object, // 组件配置信息 } @@ -29,7 +28,19 @@ } UNSAFE_componentWillMount () { const { config, BID } = this.props const { config } = this.props let BID = '' let BData = '' if (config.setting.supModule) { BData = window.GLOB.CacheData.get(config.setting.supModule) } else { BData = window.GLOB.CacheData.get(config.$pageId) } if (BData) { BID = BData.$BID || '' } this.setState({ config: fromJS(config).toJS(),