diff --git a/src/api/index.js b/src/api/index.js index 298e82b..5276f0a 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -6,7 +6,6 @@ const host2 = 'http://121.37.12.51/' export default { logins: `users/users/user/login`, //登录 verification: `${host}users/users/user/captcha`,// 验证码图片 - isClient: `users/users/user/isClient`,// 是否为客户 getUserAllRoleByToken: `users/users/role/getUserAllRoleByToken`, getSchoolIdByToken: `users/users/data/user/getSchoolIdByToken`, deleteProfile: `users/users/userInfo/deleteProfile`, @@ -14,6 +13,7 @@ export default { getCurrentTime: `competition/competition/management/getCurrentTime`, heartbeatDetection: `nakadai/message/heartbeatDetection`, encrypt: `nakadai/data/encrypt`, + logout: `users/users/user/logout`, getPlayAuth: `nakadai/nakadai/oss/getPlayAuth`, // 获取播放凭证 diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 44d2c28..e230f7d 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -170,10 +170,6 @@ export default { this.setUserId(userId) userAvatars && this.setAvatar(userAvatars) this.setUserName(userName) - } else { - this.$get(this.api.isClient).then(res => { - res.customerName && this.setUserName(res.customerName) - }).catch(res => { }) } }).catch(res => { }) }, diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index a5cebd7..d4a59a4 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -1,64 +1,56 @@ \ No newline at end of file diff --git a/src/pages/account/redirect/index.vue b/src/pages/account/redirect/index.vue index 6b71611..830120d 100644 --- a/src/pages/account/redirect/index.vue +++ b/src/pages/account/redirect/index.vue @@ -2,7 +2,7 @@