fix: typo

This commit is contained in:
Methapon Metanipat 2024-10-29 11:53:08 +07:00
parent 7ef44227b9
commit 5be3a05bc4

View file

@ -1,21 +1,18 @@
<script setup lang="ts"> <script setup lang="ts">
import { QSelect } from 'quasar'; import { QSelect } from 'quasar';
import { onMounted, reactive, ref } from 'vue'; import { onMounted, reactive, ref } from 'vue';
import { dateFormat, parseAndFormatDate } from 'src/utils/datetime';
import useAddressStore, { import useAddressStore, {
District, District,
Province, Province,
SubDistrict, SubDistrict,
} from 'stores/address'; } from 'stores/address';
import { useI18n } from 'vue-i18n';
import { selectFilterOptionRefMod } from 'stores/utils'; import { selectFilterOptionRefMod } from 'stores/utils';
import useOptionStore from 'stores/options'; import useOptionStore from 'stores/options';
import { watch } from 'vue'; import { watch } from 'vue';
import DatePicker from '../shared/DatePicker.vue'; import DatePicker from '../shared/DatePicker.vue';
const optionStore = useOptionStore(); const optionStore = useOptionStore();
const { locale } = useI18n(); const addressStore = useAddressStore();
const adrressStore = useAddressStore();
const addrOptions = reactive<{ const addrOptions = reactive<{
provinceOps: Province[]; provinceOps: Province[];
@ -51,7 +48,7 @@ defineProps<{
}>(); }>();
async function fetchProvince() { async function fetchProvince() {
const result = await adrressStore.fetchProvince(); const result = await addressStore.fetchProvince();
if (result) addrOptions.provinceOps = result; if (result) addrOptions.provinceOps = result;
} }