zs 8 mesiacov pred
rodič
commit
1a9b3a7337
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      src/views/system/friend/index.vue

+ 3 - 3
src/views/system/friend/index.vue

@@ -121,7 +121,7 @@ const toDelete = async (row) => {
   }).then(async () => {
     const res = await store.del(row.id)
     if ($checkRes(res, true)) {
-      search()
+      await search()
     }
   })
 }
@@ -156,8 +156,8 @@ const toSave = async () => {
   if (get(data, 'id')) res = await store.update(data)
   else res = await store.create(data)
   if ($checkRes(res, true)) {
-    search({ skip, limit })
-    toClose()
+    await search({ skip, limit })
+    await toClose()
   }
 }
 const currentPage = ref(1)