lrf402788946 4 years ago
parent
commit
8cbaa65304
1 changed files with 2 additions and 2 deletions
  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 || '操作失败')) {
       if (this.$checkRes(res, `操作成功`, res.errmsg || '操作失败')) {
         this.toClose();
         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();
         this.search();
       }
       }
     },
     },