|
|
@@ -129,8 +129,9 @@ export default { |
|
|
|
token: success.baseinfo.token, |
|
|
|
date: moment().format('yyyy-MM-dd hh:mm:ss') |
|
|
|
}; |
|
|
|
this.SET_STORAGE("logininfo",logininfo) |
|
|
|
this.SET_STORAGE("userinfo",success) |
|
|
|
this.SET_STORAGE("token",success.baseinfo.token) |
|
|
|
// this.SET_STORAGE("logininfo",logininfo) |
|
|
|
// this.SET_STORAGE("userinfo",success) |
|
|
|
location.href = "http://" + window.location.host; |
|
|
|
}else{ |
|
|
|
this.ready = true |
|
|
@@ -175,8 +176,9 @@ export default { |
|
|
|
token: success.baseinfo.token, |
|
|
|
date: moment().format('yyyy-MM-dd hh:mm:ss') |
|
|
|
}; |
|
|
|
this.SET_STORAGE('logininfo', logininfo); |
|
|
|
this.SET_STORAGE('userinfo', success); |
|
|
|
this.SET_STORAGE("token",success.baseinfo.token) |
|
|
|
// this.SET_STORAGE('logininfo', logininfo); |
|
|
|
// this.SET_STORAGE('userinfo', success); |
|
|
|
this.username = "" |
|
|
|
this.password = "" |
|
|
|
if (success.pwd === true) { |
|
|
|