登录token存储修改
This commit is contained in:
parent
73e9c995c2
commit
78f9d58321
@ -98,7 +98,7 @@ import QrcodeVue from 'qrcode.vue';
|
||||
import { getLoginWmurl, checkLoginStatus } from '@/api/login';
|
||||
import { LoginParams } from '@/utils/login';
|
||||
import bgImg from '@/assets/bg1.jpg';
|
||||
import { setToken } from '@/utils/auth';
|
||||
import { setToken, setDesignToken } from '@/utils/auth';
|
||||
import { loginTitle } from '@/scripts/ConstDic';
|
||||
import { removeToken, removeDesignToken} from '@/utils/auth';
|
||||
import LangStorage from '@/utils/lang';
|
||||
@ -238,7 +238,12 @@ export default {
|
||||
this.clearTimer(this.checkLogin);
|
||||
this.checkLogin = setTimeout(() => {
|
||||
checkLoginStatus(self.sessionId).then(response => {
|
||||
setToken(response.data.token);
|
||||
if (this.project === 'design') {
|
||||
setDesignToken(response.data.token);
|
||||
|
||||
} else {
|
||||
setToken(response.data.token);
|
||||
}
|
||||
// 设置扫码登录
|
||||
self.$store.dispatch('QrLoginSetting', { key: 'SET_TOKEN', value: response.data.token }).then(() => {
|
||||
// 清除定时器,设置路由
|
||||
|
@ -136,7 +136,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isNotUser:true,
|
||||
isNotUser: true,
|
||||
classA: -1,
|
||||
classB: -1,
|
||||
tempClassA: -1,
|
||||
|
Loading…
Reference in New Issue
Block a user