style:优化会员中心个人资料页面小屏自适应

This commit is contained in:
妙码生花 2023-07-31 09:56:53 +08:00
parent 90fb0147fc
commit 4ea626d307

View File

@ -10,7 +10,14 @@
</div>
</template>
<div class="user-profile">
<el-form :model="state.form" :rules="state.rules" :label-width="100" ref="formRef" @keyup.enter="onSubmit()">
<el-form
:label-position="memberCenter.state.shrink ? 'top' : 'right'"
:model="state.form"
:rules="state.rules"
:label-width="100"
ref="formRef"
@keyup.enter="onSubmit()"
>
<FormItem
:label="$t('user.account.profile.head portrait')"
:input-attr="{
@ -248,11 +255,13 @@ import { useI18n } from 'vue-i18n'
import { sendEms, sendSms } from '/@/api/common'
import { uuid } from '/@/utils/random'
import clickCaptcha from '/@/components/clickCaptcha'
import { useMemberCenter } from '/@/stores/memberCenter'
let timer: number
const { t } = useI18n()
const router = useRouter()
const userInfo = useUserInfo()
const memberCenter = useMemberCenter()
const formRef = ref<FormInstance>()
const bindFormRef = ref<FormInstance>()