Commit 4a0c3e13 by 李伟康

fix(OrderPopup): 修复弹窗组件初始化问题

- 修改 componentObject 的初始化方式,使用 JSON.parse(JSON.stringify()) 深拷贝配置对象
- 避免直接引用 config.componentConfig,防止数据共享导致的潜在问题
1 parent 9a15ee9d
......@@ -136,10 +136,11 @@ export default {
return {
position: 'bottom',
chooseContent: null,
componentObject: config.componentConfig,
componentObject: JSON.parse(JSON.stringify(config.componentConfig)),
positionTypeList:[]
}
},
watch: {
popupType: {
handler (val) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!