แก้ไขการ fetch ข้อมูล

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-11-27 09:23:43 +07:00
parent 4bcc414a4f
commit d3629cff31
5 changed files with 19 additions and 5 deletions

View file

@ -25,7 +25,7 @@ const props = defineProps({
type: Function,
required: true,
},
fetcthDataTable: {
fetchData: {
type: Function,
require: true,
},
@ -59,7 +59,6 @@ const checkstatusBox = ref<boolean>(false)
/** function checkValidate*/
function onCkickSave() {
props.closePopup?.()
const hasError = []
for (const key in objectRef) {
if (Object.prototype.hasOwnProperty.call(objectRef, key)) {
@ -107,6 +106,7 @@ async function createListTime(data: FormTimeStemp) {
})
.finally(() => {
props.closePopup?.()
props.fetchData?.()
})
}