添加注释

This commit is contained in:
wangsongsole 2022-06-01 18:45:11 +08:00
parent 541857aeab
commit d9a1bab8a8
1 changed files with 2 additions and 0 deletions

View File

@ -285,12 +285,14 @@ export default class addKnockGold extends Component {
if (this.limitFunction() === false) { if (this.limitFunction() === false) {
return false return false
} }
/* 兼容老数据 */
if (this.props.data?.goods_id) { if (this.props.data?.goods_id) {
temp[index] = Object.assign({ temp[index] = Object.assign({
...this.state.model.origin, ...this.state.model.origin,
...this.transformDataCode() ...this.transformDataCode()
}) })
} else { } else {
/* 新增编辑 */
temp[index] = this.transformDataCode() temp[index] = this.transformDataCode()
} }