lrf402788946 4 年之前
父节点
当前提交
8cbaa65304
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/user/index.vue

+ 2 - 2
src/views/user/index.vue

@@ -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();
       }
     },