|
@@ -249,7 +249,8 @@ export default {
|
|
|
const response = await this.$http.post("/api/ecs_core/auth/login", {
|
|
|
...repPara,
|
|
|
accountType: this.loginType,
|
|
|
- domain: this.schoolDomain
|
|
|
+ domain: this.schoolDomain,
|
|
|
+ alwaysOK: true
|
|
|
});
|
|
|
let data = response.data;
|
|
|
if (
|
|
@@ -263,7 +264,8 @@ export default {
|
|
|
});
|
|
|
throw "与服务器时间差异超过5分钟,请校准本机时间之后再重试!";
|
|
|
}
|
|
|
- if (data.token) {
|
|
|
+ if (data.code == "200") {
|
|
|
+ data = data.content;
|
|
|
this.errorInfo = "";
|
|
|
//缓存用户信息
|
|
|
window.sessionStorage.setItem("token", data.token);
|