fix: address display
This commit is contained in:
parent
f541853c4d
commit
add8d91fdf
1 changed files with 5 additions and 3 deletions
|
|
@ -38,6 +38,7 @@ import {
|
||||||
EmployerFormBusiness,
|
EmployerFormBusiness,
|
||||||
EmployerFormContact,
|
EmployerFormContact,
|
||||||
} from './components';
|
} from './components';
|
||||||
|
import { formatAddress } from 'src/utils/address';
|
||||||
|
|
||||||
const flowStore = useFlowStore();
|
const flowStore = useFlowStore();
|
||||||
const customerStore = useCustomerStore();
|
const customerStore = useCustomerStore();
|
||||||
|
|
@ -491,9 +492,10 @@ watch(
|
||||||
class="text-left"
|
class="text-left"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
$i18n.locale === 'eng'
|
{
|
||||||
? `${props.row.addressEN || ''} ${props.row.subDistrict?.nameEN || ''} ${props.row.district?.nameEN || ''} ${props.row.province?.nameEN || ''}`
|
['eng']: formatAddress({ ...props.row, en: true }),
|
||||||
: `${props.row.address || ''} ${props.row.subDistrict?.name || ''} ${props.row.district?.name || ''} ${props.row.province?.name || ''}`
|
['tha']: formatAddress({ ...props.row, en: false }),
|
||||||
|
}[$i18n.locale]
|
||||||
}}
|
}}
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td
|
<q-td
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue