แก้ไขการ fetch ข้อมูล
This commit is contained in:
parent
4bcc414a4f
commit
d3629cff31
5 changed files with 19 additions and 5 deletions
|
|
@ -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?.()
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue