แก้ไขเพิ่มเติม
This commit is contained in:
parent
26667a4d22
commit
fd74ca29db
2 changed files with 3 additions and 72 deletions
|
|
@ -6,9 +6,11 @@ import type { OrdinationForm } from "@/modules/05_leave/interface/request/AddAbs
|
|||
import { useLeaveStore } from "@/modules/05_leave/store"
|
||||
import http from "@/plugins/http"
|
||||
import config from "@/app.config"
|
||||
import { useRouter } from "vue-router"
|
||||
|
||||
const dataStore = useLeaveStore()
|
||||
const $q = useQuasar()
|
||||
const router = useRouter()
|
||||
const mixin = useCounterMixin()
|
||||
const { date2Thai, dialogConfirm, calculateDurationYmd, dateToISO, success, messageError } = mixin
|
||||
|
||||
|
|
@ -165,6 +167,7 @@ async function saveFormData() {
|
|||
.post(config.API.leaveUser(), formData)
|
||||
.then((res: any) => {
|
||||
success($q, "บันทึกสำเร็จ")
|
||||
router.push(`/leave`)
|
||||
})
|
||||
.catch((e: any) => {
|
||||
messageError($q, e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue