Merge branch 'NiceDev' into develop

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-04-25 14:48:59 +07:00
commit a020cd2d56
2 changed files with 4 additions and 10 deletions

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, watch } from "vue";
import { ref } from "vue";
import { useQuasar } from "quasar";
import config from "@/app.config";
import http from "@/plugins/http";
@ -13,14 +13,8 @@ import { useCounterMixin } from "@/stores/mixin";
const $q = useQuasar();
const store = useKpiDataStore();
const {
showLoader,
hideLoader,
messageError,
dialogConfirm,
dialogMessageNotify,
success,
} = useCounterMixin();
const { showLoader, hideLoader, messageError, dialogConfirm, success } =
useCounterMixin();
const modal = defineModel<boolean>("modal", { required: true });
const rows = defineModel<any>("data", { required: true });

View file

@ -146,8 +146,8 @@ function onDelete(id: string) {
? config.API.kpiAchievement("special") + `/${id}`
: "";
await http.delete(url);
props.fetchList?.();
success($q, "ลบข้อมูลสำเร็จ");
props.fetchList?.();
} catch (err) {
messageError($q, err);
} finally {