Commit 03860ab5 authored by 汪晓凯's avatar 汪晓凯

浅拷贝导致的数据更新问题

parent 7352e33b
......@@ -718,7 +718,7 @@
};
axios.post(ApiConfig.GetRobotConfig, params).then( res => {
if(res.data.code === 200) {
this.updateRobotConfig = this.robotConfig = res.data.data;
this.robotConfig = res.data.data;
}
})
},
......@@ -760,6 +760,7 @@
this.amount_num = '';
this.recharge_list_value = '';
this.transferok = false;
// console.log(this.robotConfig)
},
//确认下一步
......@@ -1031,7 +1032,7 @@
//修改机器人配置
clickUpdate() {
this.updateRobotConfig = this.robotConfig;
this.updateRobotConfig = Object.assign({},this.robotConfig);
this.dialogFormVisible2 = true;
},
//弹框确认修改
......
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 to comment