fix: notify

This commit is contained in:
setthawutttty 2025-08-21 12:57:16 +07:00
parent 8e56123e12
commit 163ff5ec12
2 changed files with 20 additions and 1 deletions

View file

@ -41,6 +41,7 @@ const {
showLoader,
hideLoader,
convertDateToAPI,
notifyWarring,
} = mixin;
const checkRoutePermisson = ref<boolean>(
@ -376,7 +377,11 @@ async function checkSave() {
myForm.value.validate().then(async (success) => {
if (success) {
if (edit.value) {
await editData(id.value);
if (rowsPosition.value.length == 0) {
notifyWarring($q, "กรุณาเพิ่มตำแหน่ง");
} else {
await editData(id.value);
}
} else {
await addData();
}