fix: fix crud.vue Object.assign()

This commit is contained in:
smallwei 2018-04-29 19:55:36 +08:00
parent 8883e075cf
commit 64cdbaf07b

View File

@ -85,7 +85,7 @@ export default {
*
**/
handleUpdate: function(row, index, done) {
this.tableData.splice(index, 1, row);
this.tableData.splice(index, 1, Object.assign({}, row));
this.$message({
showClose: true,
message: "修改成功",
@ -100,7 +100,7 @@ export default {
*
**/
handleSave: function(row, done) {
this.tableData.push(row);
this.tableData.push(Object.assign({}, row));
this.$message({
showClose: true,
message: "添加成功",