lrf402788946 4 năm trước cách đây
mục cha
commit
8cbaa65304
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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();
       }
     },