|
@@ -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)
|