fix: แก้ type fieldSelected

This commit is contained in:
Net 2024-07-04 15:04:52 +07:00
parent 7fd7df5a1b
commit 283ae2d1b0

View file

@ -134,12 +134,12 @@ const beforeBranch = ref<{ id: string; code: string }>({
const inputSearch = ref<string>('');
const fieldBranch = ref(['all', 'branchHQLabel', 'branchLabel']);
const fieldDisplay = ref([
'branchLabelTel',
'branchLabelAddress',
'branchLabelType',
]);
const fieldSelected = ref<string[]>(fieldDisplay.value);
const fieldDisplay = ref<
('branchLabelAddress' | 'branchLabelTel' | 'branchLabelType')[]
>(['branchLabelTel', 'branchLabelAddress', 'branchLabelType']);
const fieldSelected = ref<
('branchLabelAddress' | 'branchLabelTel' | 'branchLabelType')[]
>(fieldDisplay.value);
const fieldSelectedBranch = ref<{
label: string;
value: string;