Commit df0b2c36 by Denglingling

提交成功后,需要清除语音、图片等数据

parent fc803436
......@@ -1048,6 +1048,7 @@ class EquipConsuPage extends Component {
let {props} = this
let {listOptionData, subInitListOption} = this.state
props.setEquipInitData() // 清空缓存数据
let imgArr = []
this.setState({
listOptionData: listOptionData.map((item, index) => {
// 器械消耗 为何和 快速下单一样赋值方式就不行,所以换成这个
......@@ -1055,7 +1056,8 @@ class EquipConsuPage extends Component {
item[key] = subInitListOption[index][key]
})
return item
})
}),
localPhoOption: [...imgArr]
})
}
......
......@@ -1245,7 +1245,9 @@ class EquipConsuPage extends Component {
props.setQuickInitData() // 清空缓存数据
listOptionData = cloneObject(subInitListOption) // 清空本地数据
this.setState({
listOptionData
listOptionData,
currentTime: 0, // 清除语音
stop: false
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment