fix vue warning
This commit is contained in:
parent
faf9c4c7f3
commit
c681d56885
7 changed files with 10 additions and 13 deletions
|
|
@ -349,7 +349,6 @@ onMounted(async () => {
|
|||
|
||||
<DialogOrders
|
||||
v-model:modal="modal"
|
||||
v-model:filter-order="filterOrder"
|
||||
:fetch-data="fetchData"
|
||||
:close-modal="closeModal"
|
||||
v-model:rows="rowsOrder"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ const modal = defineModel<boolean>("modal", { required: true });
|
|||
const props = defineProps({
|
||||
fetchData: { type: Function, required: true },
|
||||
dataCondition: {
|
||||
type: Object as PropType<DataPositionCondition | undefined>,
|
||||
required: true,
|
||||
type: Object as PropType<DataPositionCondition>,
|
||||
default: () => ({}),
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue