Refactor PiyangoOnay components to replace refreshList logic with window reload. This change simplifies the refresh mechanism after form submission, enhancing user experience by ensuring the latest data is displayed immediately.
This commit is contained in:
@ -202,10 +202,7 @@
|
|||||||
|
|
||||||
if (dt !== 'errorfalse') {
|
if (dt !== 'errorfalse') {
|
||||||
dialogStore.CloseDialog('deleteonaydurumu')
|
dialogStore.CloseDialog('deleteonaydurumu')
|
||||||
piyangoOnayStore.refreshList = false
|
window.location.reload()
|
||||||
setTimeout(() => {
|
|
||||||
piyangoOnayStore.refreshList = true
|
|
||||||
}, 10)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -88,11 +88,8 @@ export const usePiyangoOnayService = defineStore('piyangoOnayService', () => {
|
|||||||
piyangoOnayValidationStore.formChanged = false
|
piyangoOnayValidationStore.formChanged = false
|
||||||
piyangoStore.lotteryApprove =
|
piyangoStore.lotteryApprove =
|
||||||
piyangoOnayStore.piyangoOnayForm.onayDurumuIslemTipiId
|
piyangoOnayStore.piyangoOnayForm.onayDurumuIslemTipiId
|
||||||
piyangoOnayStore.refreshList = true
|
|
||||||
piyangoOnayStore.ResetForm()
|
piyangoOnayStore.ResetForm()
|
||||||
setTimeout(() => {
|
window.location.reload()
|
||||||
piyangoOnayStore.loaded = true
|
|
||||||
}, 10)
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
piyangoOnayValidationStore.isFormValid = true
|
piyangoOnayValidationStore.isFormValid = true
|
||||||
|
|||||||
Reference in New Issue
Block a user