mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-23 05:40:20 +08:00
fix: fix crud.vue Object.assign()
This commit is contained in:
parent
8883e075cf
commit
64cdbaf07b
@ -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: "添加成功",
|
||||
|
Loading…
Reference in New Issue
Block a user