fix vue warning
This commit is contained in:
parent
faf9c4c7f3
commit
c681d56885
7 changed files with 10 additions and 13 deletions
|
|
@ -20,7 +20,7 @@ const { findOrgNameOldHtml, findOrgNameHtml } = useCounterMixin();
|
||||||
|
|
||||||
/** propsDataProfile*/
|
/** propsDataProfile*/
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: { type: Object as PropType<DataProfile>, required: true },
|
data: { type: Object as PropType<DataProfile>, default: () => ({}) },
|
||||||
type: { type: String, default: "" },
|
type: { type: String, default: "" },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -349,7 +349,6 @@ onMounted(async () => {
|
||||||
|
|
||||||
<DialogOrders
|
<DialogOrders
|
||||||
v-model:modal="modal"
|
v-model:modal="modal"
|
||||||
v-model:filter-order="filterOrder"
|
|
||||||
:fetch-data="fetchData"
|
:fetch-data="fetchData"
|
||||||
:close-modal="closeModal"
|
:close-modal="closeModal"
|
||||||
v-model:rows="rowsOrder"
|
v-model:rows="rowsOrder"
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,7 @@ import type {
|
||||||
DataCommandType,
|
DataCommandType,
|
||||||
} from "@/modules/18_command/interface/response/Main";
|
} from "@/modules/18_command/interface/response/Main";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const { date2Thai } = useCounterMixin();
|
||||||
const { showLoader, hideLoader, date2Thai, messageError } = useCounterMixin();
|
|
||||||
|
|
||||||
export const useCommandListStore = defineStore("commandListStore", () => {
|
export const useCommandListStore = defineStore("commandListStore", () => {
|
||||||
const tabsMain = ref<string>("DRAFT");
|
const tabsMain = ref<string>("DRAFT");
|
||||||
|
|
@ -104,7 +103,6 @@ export const useCommandListStore = defineStore("commandListStore", () => {
|
||||||
async function fetchCommandType() {
|
async function fetchCommandType() {
|
||||||
//เช็คค่าของ listCommand
|
//เช็คค่าของ listCommand
|
||||||
if (listCommand.value.length === 0) {
|
if (listCommand.value.length === 0) {
|
||||||
// showLoader();
|
|
||||||
try {
|
try {
|
||||||
const res = await http.get(config.API.commandType);
|
const res = await http.get(config.API.commandType);
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
|
|
@ -116,9 +114,7 @@ export const useCommandListStore = defineStore("commandListStore", () => {
|
||||||
|
|
||||||
return listCommand.value;
|
return listCommand.value;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
messageError($q, err);
|
console.log(err);
|
||||||
} finally {
|
|
||||||
// hideLoader();
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return listCommand.value;
|
return listCommand.value;
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,8 @@ const modal = defineModel<boolean>("modal", { required: true });
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
fetchData: { type: Function, required: true },
|
fetchData: { type: Function, required: true },
|
||||||
dataCondition: {
|
dataCondition: {
|
||||||
type: Object as PropType<DataPositionCondition | undefined>,
|
type: Object as PropType<DataPositionCondition>,
|
||||||
required: true,
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -199,5 +199,5 @@ h3.resigtry-tab-title
|
||||||
.filter-card
|
.filter-card
|
||||||
background-color: #f1f1f1b0
|
background-color: #f1f1f1b0
|
||||||
|
|
||||||
.dp__menu
|
.modalfix
|
||||||
position: fixed !important
|
position: fixed !important
|
||||||
|
|
|
||||||
|
|
@ -1205,9 +1205,8 @@ function onViewDetailNoti(url: string) {
|
||||||
</q-page>
|
</q-page>
|
||||||
</q-page-container>
|
</q-page-container>
|
||||||
<full-loader :visibility="loader" />
|
<full-loader :visibility="loader" />
|
||||||
|
<LoginLinkage v-model:modal="modalLoginLinkage" />
|
||||||
</q-layout>
|
</q-layout>
|
||||||
|
|
||||||
<LoginLinkage v-model:modal="modalLoginLinkage" />
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
|
|
@ -27,4 +27,7 @@ export default defineConfig({
|
||||||
server: {
|
server: {
|
||||||
port: 3006,
|
port: 3006,
|
||||||
},
|
},
|
||||||
|
define: {
|
||||||
|
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false, // หรือ true ถ้าต้องการเปิดใช้
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue