feat: hide avatar upload button when phone is not set

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

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

Loading…
Cancel
Save