@ -107,16 +107,6 @@ const profile = defineComponent({
placeholder={t('profile.phone_tips')}
/>
</NFormItem>
<NFormItem label={t('profile.state')} path='state'>
<NRadioGroup v-model={[this.profileForm.state, 'value']}>
{[
{ value: 1, label: t('profile.enable') },
{ value: 0, label: t('profile.disable') },
].map((item) => {
return <NRadio value={item.value}>{item.label}</NRadio>
})}
</NRadioGroup>
</NForm>
),
}}
@ -32,7 +32,6 @@ export function useForm() {
username: userInfo.userName,
email: userInfo.email,
phone: userInfo.phone,
state: userInfo.state,
},
rules: {
username: {
@ -63,7 +62,6 @@ export function useForm() {
}
})
@ -33,7 +33,7 @@ export function useUpdate(state: any) {
tenantId: userInfo.tenantId,
email: state.profileForm.email,
phone: state.profileForm.phone,
state: state.profileForm.state,
queue: userInfo.queue,