fix: build failed

This commit is contained in:
Methapon2001 2024-04-18 09:01:47 +07:00
parent 70c6d58db0
commit dbd9fabcba

View file

@ -11,14 +11,15 @@ import TooltipComponent from 'components/TooltipComponent.vue';
import StatCard from 'components/StatCardComponent.vue'; import StatCard from 'components/StatCardComponent.vue';
import BranchCard from 'src/components/01_branch-management/BranchCard.vue'; import BranchCard from 'src/components/01_branch-management/BranchCard.vue';
import { BranchWithChildren, BranchCreate } from 'stores/branch/types'; // import { BranchWithChildren, BranchCreate } from 'stores/branch/types';
import { BranchWithChildren } from 'stores/branch/types';
import { watch } from 'vue'; import { watch } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
const { t } = useI18n(); const { t } = useI18n();
const profileFile = ref<File | undefined>(undefined); // const profileFile = ref<File | undefined>(undefined);
const imageUrl = ref<string | null>(); // const imageUrl = ref<string | null>();
// const inputFile = (() => { // const inputFile = (() => {
// const element = document.createElement('input'); // const element = document.createElement('input');
@ -102,28 +103,28 @@ const fieldSelectedBranch = ref<{
const stats = ref<{ count: number; label: string }[]>([]); const stats = ref<{ count: number; label: string }[]>([]);
const defaultFormData = { // const defaultFormData = {
headOfficeId: null, // headOfficeId: null,
taxNo: '', // taxNo: '',
nameEN: '', // nameEN: '',
name: '', // name: '',
addressEN: '', // addressEN: '',
address: '', // address: '',
zipCode: '', // zipCode: '',
email: '', // email: '',
telephoneNo: '', // telephoneNo: '',
longitude: '', // longitude: '',
latitude: '', // latitude: '',
subDistrictId: '', // subDistrictId: '',
districtId: '', // districtId: '',
provinceId: '', // provinceId: '',
contactName: '', // contactName: '',
contact: [] as string[], // contact: [] as string[],
}; // };
const formData = ref<BranchCreate & { contact: string[] }>( // const formData = ref<BranchCreate & { contact: string[] }>(
structuredClone(defaultFormData), // structuredClone(defaultFormData),
); // );
// function clearData() { // function clearData() {
// formData.value = structuredClone(defaultFormData); // formData.value = structuredClone(defaultFormData);