delete const $q = useQuasar(); .ts

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-06-06 13:56:05 +07:00
parent af4bae0b8a
commit 685191c74b
7 changed files with 51 additions and 84 deletions

View file

@ -1,5 +1,4 @@
import { defineStore } from "pinia";
import { useQuasar } from "quasar";
import { ref } from "vue";
import http from "@/plugins/http";
@ -14,8 +13,8 @@ import type {
import type { QTableProps } from "quasar";
const mixin = useCounterMixin();
const $q = useQuasar();
const { date2Thai, messageError, showLoader, hideLoader } = mixin;
const { date2Thai, showLoader, hideLoader } = mixin;
const checkCilck = ref<boolean>(false);
const profileId = ref<string>("");
@ -159,7 +158,7 @@ export const useChangeRoundDataStore = defineStore(
}
})
.catch((e) => {
messageError($q, e);
console.log(e);
})
.finally(() => {
hideLoader();
@ -208,8 +207,8 @@ export const useChangeRoundDataStore = defineStore(
maxPage.value = Math.ceil(total.value / pageSize.value);
});
})
.catch((err) => {
messageError($q, err);
.catch((e) => {
console.log(e);
})
.finally(() => {
hideLoader();