|
@@ -19,7 +19,7 @@
|
|
<DropdownMenu slot="list" class="user-center-wrap">
|
|
<DropdownMenu slot="list" class="user-center-wrap">
|
|
<DropdownItem class="user-info-wrap" @click.native="toUserCenter()">
|
|
<DropdownItem class="user-info-wrap" @click.native="toUserCenter()">
|
|
<p>{{userInfo.username}}</p>
|
|
<p>{{userInfo.username}}</p>
|
|
- <p class="user-id">{{`ID: ${user.id}`}}</p>
|
|
|
|
|
|
+ <p class="user-id">{{`ID: ${userInfo.id}`}}</p>
|
|
<Icon class="user-info-arrow" type="ios-arrow-forward" color="#fff" />
|
|
<Icon class="user-info-arrow" type="ios-arrow-forward" color="#fff" />
|
|
</DropdownItem>
|
|
</DropdownItem>
|
|
<DropdownItem class="drop-item" style="margin-top:8px" @click.native="onRoleSelect('student')">
|
|
<DropdownItem class="drop-item" style="margin-top:8px" @click.native="onRoleSelect('student')">
|
|
@@ -104,6 +104,7 @@ export default {
|
|
this.curRole = this.user.roles[0]
|
|
this.curRole = this.user.roles[0]
|
|
}
|
|
}
|
|
this.userInfo.username = this.user.name
|
|
this.userInfo.username = this.user.name
|
|
|
|
+ this.userInfo.id = this.user.id || this.user.sub
|
|
this.userInfo.nameColor = this.randomColor()
|
|
this.userInfo.nameColor = this.randomColor()
|
|
this.userInfo.courseNum = user_profile.courses.length
|
|
this.userInfo.courseNum = user_profile.courses.length
|
|
},
|
|
},
|