Skip to content

Commit

Permalink
feat: hide avatar upload button when phone is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
rocboss committed Jun 29, 2022
1 parent b86acf3 commit 7ef808e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions web/src/views/Setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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="{
Expand Down Expand Up @@ -82,7 +86,7 @@
</div>
<div v-else>
<n-alert title="手机绑定提示" type="warning">
成功绑定手机后才能进行换头像发动态回复等交互哦~
成功绑定手机后才能进行换头像发动态回复等交互哦~<br />
<a
class="hash-link"
@click="showPhoneBind = true"
Expand Down Expand Up @@ -571,10 +575,6 @@ onMounted(() => {
}
}

.hash-link {
margin-left: 12px;
}

.phone-bind-wrap {
margin-top: 20px;
.captcha-img-wrap {
Expand Down

0 comments on commit 7ef808e

Please sign in to comment.