fix vue warning
This commit is contained in:
parent
faf9c4c7f3
commit
c681d56885
7 changed files with 10 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue