正在显示
3 个修改的文件
包含
7 行增加
和
5 行删除
... | ... | @@ -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) { | ... | ... |
... | ... | @@ -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 | } | ... | ... |
请
注册
或
登录
后发表评论