fix: Changing language doesn't work

This commit is contained in:
Thanaphon Frappet 2024-10-21 17:19:41 +07:00
parent 07656eccde
commit d9ba382f87

View file

@ -1,6 +1,6 @@
<script lang="ts" setup>
import { Icon } from '@iconify/vue';
import { ref, watch } from 'vue';
import { ref, watch, computed } from 'vue';
import { useI18n } from 'vue-i18n';
import { formatNumberDecimal, commaInput } from 'stores/utils';
@ -60,8 +60,7 @@ const summaryPrice = defineModel<{
const finalDiscount = defineModel<number>('finalDiscount', { default: 0 });
const finalDiscount4Show = ref<string>(finalDiscount.value.toString());
const payTypeOpion = ref([
const payTypeOpion = computed(() => [
{
value: 'Full',
label: t('quotation.type.fullAmountCash'),
@ -79,7 +78,6 @@ const payTypeOpion = ref([
label: t('quotation.type.installmentsBill'),
},
]);
const amount4Show = ref<string[]>([]);
function calculateInstallments(param: {