lrf402788946 há 4 anos atrás
pai
commit
8cbaa65304
1 ficheiros alterados com 2 adições e 2 exclusões
  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();
       }
     },