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

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

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