Commit 3f53037e by fukai

解决登录问题

parent b4beb861
......@@ -361,27 +361,29 @@ export default {
})
return
}
this.poin_initManage(
{ id: "logout" },
(response, responseData, messageObj) => {
if (response && response.ok) {
// 删除session
sessionStorage.clear();
if (JSON.parse(responseData).responseText != "iam") {
// 非IAM登陆
// 跳转到登陆页
this.$router.replace("/login");
} else {
window.opener = "";
window.open("", "_self");
window.close();
}
}
},
messageObj => {
messageObj.responseType = "text/html";
}
);
// this.poin_initManage(
// { id: "logout" },
// (response, responseData, messageObj) => {
// if (response && response.ok) {
// // 删除session
// sessionStorage.clear();
// if (JSON.parse(responseData).responseText != "iam") {
// // 非IAM登陆
// // 跳转到登陆页
// this.$router.replace("/login");
// } else {
// window.opener = "";
// window.open("", "_self");
// window.close();
// }
// }
// },
// messageObj => {
// messageObj.responseType = "text/html";
// }
// );
sessionStorage.clear();
this.$router.replace("/login");
} else if ("setPassWord" == param) {
//修改密码
this.openPassWord = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment