Skip to content

Commit 02b4b66

Browse files
committed
🐛 获取用户信息之前需要进行授权
1 parent d5747a4 commit 02b4b66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/profile/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<!-- <view class="md-profile__header">
44
<text class="md-profile__title">{{ title }}</text>
55
</view> -->
6+
<button open-type="getUserInfo">授权访问</button>
67
<view class="md-profile__user" @click="getUserInfo">
78
<image class="md-profile__user-avatar" :src="userInfo.avatarUrl" mode="aspectFit"/>
89
<text class="md-profile__user-nickname">{{ userInfo.nickName }}</text>

0 commit comments

Comments
 (0)