|
@@ -134,6 +134,7 @@ import qs from "qs";
|
|
|
import { API_CONFIG } from "@/common/apiConfig";
|
|
|
import "@/common/wxLogin";
|
|
|
import { getUser } from "@/api/user";
|
|
|
+import { loginOut } from "@/api/user";
|
|
|
|
|
|
export default {
|
|
|
name: "loginPage",
|
|
@@ -532,6 +533,9 @@ export default {
|
|
|
this.OrgOptions.find((i) => i.Uorg == this.org).id
|
|
|
)
|
|
|
) {
|
|
|
+ this.wechatLogin();
|
|
|
+ await loginOut();
|
|
|
+ await this.logout();
|
|
|
return this.$message.error("该组织/学校不允许登录");
|
|
|
}
|
|
|
} else {
|
|
@@ -543,6 +547,9 @@ export default {
|
|
|
this.OrgOptions.find((i) => i.Uorg == this.org).id
|
|
|
)
|
|
|
) {
|
|
|
+ this.wechatLogin();
|
|
|
+ await loginOut();
|
|
|
+ await this.logout();
|
|
|
return this.$message.error("该组织/学校不允许登录");
|
|
|
}
|
|
|
}
|