fix vue warning

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-06-05 18:02:08 +07:00
parent faf9c4c7f3
commit c681d56885
7 changed files with 10 additions and 13 deletions

View file

@ -12,8 +12,7 @@ import type {
DataCommandType,
} from "@/modules/18_command/interface/response/Main";
const $q = useQuasar();
const { showLoader, hideLoader, date2Thai, messageError } = useCounterMixin();
const { date2Thai } = useCounterMixin();
export const useCommandListStore = defineStore("commandListStore", () => {
const tabsMain = ref<string>("DRAFT");
@ -104,7 +103,6 @@ export const useCommandListStore = defineStore("commandListStore", () => {
async function fetchCommandType() {
//เช็คค่าของ listCommand
if (listCommand.value.length === 0) {
// showLoader();
try {
const res = await http.get(config.API.commandType);
const data = res.data.result;
@ -116,9 +114,7 @@ export const useCommandListStore = defineStore("commandListStore", () => {
return listCommand.value;
} catch (err) {
messageError($q, err);
} finally {
// hideLoader();
console.log(err);
}
} else {
return listCommand.value;