feat: hide avatar upload button when phone is not set

pull/146/head
ROC 3 years ago
parent b86acf3e75
commit 7ef808efc8

@ -9,6 +9,10 @@
:src="store.state.userInfo.avatar" :src="store.state.userInfo.avatar"
/> />
<n-upload <n-upload
v-if="
store.state.userInfo.phone &&
store.state.userInfo.phone.length > 0
"
ref="avatarRef" ref="avatarRef"
:action="uploadGateway" :action="uploadGateway"
:headers="{ :headers="{
@ -82,7 +86,7 @@
</div> </div>
<div v-else> <div v-else>
<n-alert title="手机绑定提示" type="warning"> <n-alert title="手机绑定提示" type="warning">
~ ~<br />
<a <a
class="hash-link" class="hash-link"
@click="showPhoneBind = true" @click="showPhoneBind = true"
@ -571,10 +575,6 @@ onMounted(() => {
} }
} }
.hash-link {
margin-left: 12px;
}
.phone-bind-wrap { .phone-bind-wrap {
margin-top: 20px; margin-top: 20px;
.captcha-img-wrap { .captcha-img-wrap {

Loading…
Cancel
Save