|
@@ -177,8 +177,8 @@ export default {
|
|
|
}
|
|
|
if (this.$checkRes(res, `操作成功`, res.errmsg || '操作失败')) {
|
|
|
this.toClose();
|
|
|
- // const index = this.list.findIndex(f => f._id === _id);
|
|
|
- // if (index >= 0) this.$set(this.list, index, data);
|
|
|
+ const index = this.list.findIndex(f => f._id === _id);
|
|
|
+ if (index >= 0) this.$set(this.list, index, data);
|
|
|
this.search();
|
|
|
}
|
|
|
},
|