提交 ec7cbabb3639767140d853be81d13d60133a3b5b

作者 guomingshu
1 个父辈 a79488a6

feat: fix bug

... ... @@ -66,13 +66,13 @@
66 66 <view v-else>
67 67 <view class="name"> 未登录 </view>
68 68 </view>
69   - <view v-if="doneRolesLength > 1">
  69 + <view v-if="doneRolesName">
70 70 <view class="identity" @click="handelChange">
71 71 <u-icon
72 72 size="32rpx"
73 73 :label="doneRolesName"
74 74 labelPos="right"
75   - labelSize="24rpx"
  75 + labelSize="28rpx"
76 76 labelColor="#202131"
77 77 name="/static/img/home/changeAuth.png"
78 78 ></u-icon>
... ... @@ -557,6 +557,8 @@ export default {
557 557 },
558 558
559 559 handelChange() {
  560 + // 身份切换去除
  561 + return
560 562 let { roles = [] } = this.teacher;
561 563
562 564 if (roles.length < 2) {
... ...

677 Bytes | 宽: | 高:

760 Bytes | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖
... ... @@ -132,9 +132,9 @@ const store = new Vuex.Store({
132 132 let {
133 133 teacher = {}
134 134 } = state.vuex_user;
135   - if (teacher && teacher.roles && teacher.roles.length > 0) {
136   - let selectRoles = teacher.roles.filter(item => item.id == teacher.roleId);
137   - return selectRoles[0].name
  135 + if (teacher && teacher.roleName) {
  136 + // let selectRoles = teacher.roles.filter(item => item.id == teacher.roleId);
  137 + return teacher.roleName
138 138 } else {
139 139 return ''
140 140 }
... ...
注册登录 后发表评论