Merge branch 'chengdu' of ssh://git.czcyedu.com:222/huoran/FE_kd_client into chengdu

chengdu
liangliang.Li 4 years ago
commit 5bfacc0c80
  1. 2
      src/components/page/PersonalCenter.vue
  2. 4
      src/utils/http.js

@ -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 => {});
},

@ -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('您已在另一台设备登录,本次登录已下线!')

Loading…
Cancel
Save