fix bug data table not re render

This commit is contained in:
Geriano
2022-09-30 13:19:02 +07:00
parent 5fd44b83a6
commit 728c5e7012
2 changed files with 15 additions and 7 deletions

View File

@@ -18,6 +18,7 @@ import Input from '@/Components/Input.vue'
import InputError from '@/Components/InputError.vue'
const self = getCurrentInstance()
const render = ref(true)
const { permissions, roles } = defineProps({
permissions: Array,
roles: Array,
@@ -42,7 +43,8 @@ const show = () => open.value = true
const close = () => {
open.value = false
form.reset()
table.value?.refresh()
render.value = false
nextTick(() => render.value = true)
}
const store = () => {
@@ -151,6 +153,7 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
<template #body>
<div class="flex flex-col space-y-2">
<Builder
v-if="render"
:url="route('api.v1.superuser.user.paginate')"
ref="table"
>