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*/
|
||||
const props = defineProps({
|
||||
data: { type: Object as PropType<DataProfile>, required: true },
|
||||
data: { type: Object as PropType<DataProfile>, default: () => ({}) },
|
||||
type: { type: String, default: "" },
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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: () => ({}),
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -199,5 +199,5 @@ h3.resigtry-tab-title
|
|||
.filter-card
|
||||
background-color: #f1f1f1b0
|
||||
|
||||
.dp__menu
|
||||
.modalfix
|
||||
position: fixed !important
|
||||
|
|
|
|||
|
|
@ -1205,9 +1205,8 @@ function onViewDetailNoti(url: string) {
|
|||
</q-page>
|
||||
</q-page-container>
|
||||
<full-loader :visibility="loader" />
|
||||
</q-layout>
|
||||
|
||||
<LoginLinkage v-model:modal="modalLoginLinkage" />
|
||||
</q-layout>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
|
|
@ -27,4 +27,7 @@ export default defineConfig({
|
|||
server: {
|
||||
port: 3006,
|
||||
},
|
||||
define: {
|
||||
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false, // หรือ true ถ้าต้องการเปิดใช้
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue