chore: comment out unused var (build failed)
This commit is contained in:
parent
05b2bd4221
commit
70c6d58db0
1 changed files with 23 additions and 24 deletions
|
|
@ -11,7 +11,6 @@ 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 { BranchContactCreate } from 'stores/branch-contact/types';
|
|
||||||
import { BranchWithChildren, BranchCreate } from 'stores/branch/types';
|
import { BranchWithChildren, BranchCreate } from 'stores/branch/types';
|
||||||
import { watch } from 'vue';
|
import { watch } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
@ -21,25 +20,25 @@ 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');
|
||||||
element.type = 'file';
|
// element.type = 'file';
|
||||||
element.accept = 'image/*';
|
// element.accept = 'image/*';
|
||||||
|
//
|
||||||
const reader = new FileReader();
|
// const reader = new FileReader();
|
||||||
reader.addEventListener('load', () => {
|
// reader.addEventListener('load', () => {
|
||||||
if (typeof reader.result === 'string') imageUrl.value = reader.result;
|
// if (typeof reader.result === 'string') imageUrl.value = reader.result;
|
||||||
});
|
// });
|
||||||
|
//
|
||||||
element.addEventListener('change', () => {
|
// element.addEventListener('change', () => {
|
||||||
profileFile.value = element.files?.[0];
|
// profileFile.value = element.files?.[0];
|
||||||
if (profileFile.value) {
|
// if (profileFile.value) {
|
||||||
reader.readAsDataURL(profileFile.value);
|
// reader.readAsDataURL(profileFile.value);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
//
|
||||||
return element;
|
// return element;
|
||||||
})();
|
// })();
|
||||||
|
|
||||||
const branchStore = useBranchStore();
|
const branchStore = useBranchStore();
|
||||||
const { locale } = useI18n();
|
const { locale } = useI18n();
|
||||||
|
|
@ -126,10 +125,10 @@ const formData = ref<BranchCreate & { contact: string[] }>(
|
||||||
structuredClone(defaultFormData),
|
structuredClone(defaultFormData),
|
||||||
);
|
);
|
||||||
|
|
||||||
function clearData() {
|
// function clearData() {
|
||||||
formData.value = structuredClone(defaultFormData);
|
// formData.value = structuredClone(defaultFormData);
|
||||||
profileFile.value = undefined;
|
// profileFile.value = undefined;
|
||||||
}
|
// }
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue