fix: build failed
This commit is contained in:
parent
70c6d58db0
commit
dbd9fabcba
1 changed files with 25 additions and 24 deletions
|
|
@ -11,14 +11,15 @@ import TooltipComponent from 'components/TooltipComponent.vue';
|
|||
import StatCard from 'components/StatCardComponent.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 { useI18n } from 'vue-i18n';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const profileFile = ref<File | undefined>(undefined);
|
||||
const imageUrl = ref<string | null>();
|
||||
// const profileFile = ref<File | undefined>(undefined);
|
||||
// const imageUrl = ref<string | null>();
|
||||
|
||||
// const inputFile = (() => {
|
||||
// const element = document.createElement('input');
|
||||
|
|
@ -102,28 +103,28 @@ const fieldSelectedBranch = ref<{
|
|||
|
||||
const stats = ref<{ count: number; label: string }[]>([]);
|
||||
|
||||
const defaultFormData = {
|
||||
headOfficeId: null,
|
||||
taxNo: '',
|
||||
nameEN: '',
|
||||
name: '',
|
||||
addressEN: '',
|
||||
address: '',
|
||||
zipCode: '',
|
||||
email: '',
|
||||
telephoneNo: '',
|
||||
longitude: '',
|
||||
latitude: '',
|
||||
subDistrictId: '',
|
||||
districtId: '',
|
||||
provinceId: '',
|
||||
contactName: '',
|
||||
contact: [] as string[],
|
||||
};
|
||||
// const defaultFormData = {
|
||||
// headOfficeId: null,
|
||||
// taxNo: '',
|
||||
// nameEN: '',
|
||||
// name: '',
|
||||
// addressEN: '',
|
||||
// address: '',
|
||||
// zipCode: '',
|
||||
// email: '',
|
||||
// telephoneNo: '',
|
||||
// longitude: '',
|
||||
// latitude: '',
|
||||
// subDistrictId: '',
|
||||
// districtId: '',
|
||||
// provinceId: '',
|
||||
// contactName: '',
|
||||
// contact: [] as string[],
|
||||
// };
|
||||
|
||||
const formData = ref<BranchCreate & { contact: string[] }>(
|
||||
structuredClone(defaultFormData),
|
||||
);
|
||||
// const formData = ref<BranchCreate & { contact: string[] }>(
|
||||
// structuredClone(defaultFormData),
|
||||
// );
|
||||
|
||||
// function clearData() {
|
||||
// formData.value = structuredClone(defaultFormData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue