updated develop project save step

This commit is contained in:
Warunee Tamkoo 2024-08-14 11:48:52 +07:00
parent f2a1d55ada
commit 8e3de78a85
6 changed files with 27 additions and 14 deletions

View file

@ -20,7 +20,7 @@ import { useCounterMixin } from "@/stores/mixin";
* use
*/
const $q = useQuasar();
const { showLoader, hideLoader, messageError } = useCounterMixin();
const { showLoader, hideLoader, messageError, success } = useCounterMixin();
const route = useRoute();
/**
@ -123,7 +123,9 @@ function onSubmit() {
: formData.budgetPay;
http
.put(config.API.developmentMainTab("tab7", projectId.value), formData)
.then(() => {})
.then(() => {
success($q, "บันทึกข้อมูลแล้ว");
})
.catch((err) => {
messageError($q, err);
})