From 91ef762c81fb62f04e97bc564359c4e706aed311 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 27 May 2021 14:09:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page/Login.vue | 2 +- src/components/page/PersonalCenter.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/page/Login.vue b/src/components/page/Login.vue index 3cc5ee6..b59bf42 100644 --- a/src/components/page/Login.vue +++ b/src/components/page/Login.vue @@ -52,7 +52,7 @@ export default { }, methods:{ toClient(){ - location.href = location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdclient/#/login' : 'http://122.9.154.146/kdclient/#/clientLogin' + location.href = location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdclient/#/clientLogin' : 'http://122.9.154.146/kdclient/#/clientLogin' }, toMang(){ location.href = location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdserver/#/login' : 'http://122.9.154.146/kdserver/#/login' diff --git a/src/components/page/PersonalCenter.vue b/src/components/page/PersonalCenter.vue index ab43b11..0ea04cd 100644 --- a/src/components/page/PersonalCenter.vue +++ b/src/components/page/PersonalCenter.vue @@ -875,7 +875,7 @@ export default { personalFileEntities } this.$put(this.api.userinfoUpdate,data).then(res => { - bus.$emit('updateAccount',personalInformation.account) + bus.$emit('updateAccount',personalInformation.userName) this.$message.success('提交成功!') }).catch(res => {}); }, From 3f7f3f13c9530285ca7733ca0dacc0f8c99922d4 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 27 May 2021 18:27:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=BA=92=E8=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/http.js b/src/utils/http.js index 77d35d5..43adbac 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -102,10 +102,10 @@ axios.interceptors.request.use(config => { // ); let logout = false +let studentIds = [1504, 1505, 1506, 1507, 1508, 1509, 1510, 1511, 1512, 1513] export function getToken(){ - // console.log(store.state.dataTime) if(process.env.NODE_ENV == 'production'){ - if(store.state.dataTime && !logout){ + if(store.state.dataTime && !logout && !studentIds.includes(store.state.studentId)){ axios.get(`${api.queryToken}?token=${store.state.token}`).then(res => { if(store.state.dataTime && (res.data.message != store.state.dataTime)){ logout || Message.error('您已在另一台设备登录,本次登录已下线!')