แก้ loading
This commit is contained in:
parent
7bc8ca5776
commit
4dbf1de05d
1 changed files with 3 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ import { useCounterMixin } from '@/stores/mixin'
|
||||||
|
|
||||||
const $q = useQuasar()
|
const $q = useQuasar()
|
||||||
const mixin = useCounterMixin()
|
const mixin = useCounterMixin()
|
||||||
const { date2Thai, success, dialogConfirm } = mixin
|
const { date2Thai, success, dialogConfirm, showLoader, hideLoader } = mixin
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
dataById: {
|
dataById: {
|
||||||
|
|
@ -97,6 +97,7 @@ function onCkickSave() {
|
||||||
* @param data body Request
|
* @param data body Request
|
||||||
*/
|
*/
|
||||||
async function createListTime(data: FormTimeStemp) {
|
async function createListTime(data: FormTimeStemp) {
|
||||||
|
showLoader()
|
||||||
await http
|
await http
|
||||||
.post(config.API.createTimeStamp(), data)
|
.post(config.API.createTimeStamp(), data)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
@ -107,6 +108,7 @@ async function createListTime(data: FormTimeStemp) {
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
props.closePopup?.()
|
props.closePopup?.()
|
||||||
|
hideLoader()
|
||||||
props.fetchData()
|
props.fetchData()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue