fix: 02 form user type i18n

This commit is contained in:
puriphatt 2024-07-23 09:41:35 +00:00
parent 9e1c4f6736
commit 16ff59b705

View file

@ -105,12 +105,23 @@ onMounted(async () => {
hide-bottom-space
class="col-6"
option-value="value"
option-label="label"
:label="$t('formDialogInputUserType')"
v-model="userType"
:options="userStore.userOption.userTypeOpts"
:rules="[(val: string) => !!val || $t('formDialogInputUserTypeValidate')]"
/>
>
<template v-slot:option="scope">
<q-item v-if="scope.opt" v-bind="scope.itemProps">
{{ $t(scope.opt.label) }}
</q-item>
</template>
<template v-slot:selected-item="scope">
<div v-if="scope.opt">
{{ $t(scope.opt.label) }}
</div>
</template>
</q-select>
<q-select
id="select-user-role"
:dense="dense"