Commit 3f53037e by fukai

解决登录问题

parent b4beb861
...@@ -361,27 +361,29 @@ export default { ...@@ -361,27 +361,29 @@ export default {
}) })
return return
} }
this.poin_initManage( // this.poin_initManage(
{ id: "logout" }, // { id: "logout" },
(response, responseData, messageObj) => { // (response, responseData, messageObj) => {
if (response && response.ok) { // if (response && response.ok) {
// 删除session // // 删除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(); sessionStorage.clear();
if (JSON.parse(responseData).responseText != "iam") {
// 非IAM登陆
// 跳转到登陆页
this.$router.replace("/login"); this.$router.replace("/login");
} else {
window.opener = "";
window.open("", "_self");
window.close();
}
}
},
messageObj => {
messageObj.responseType = "text/html";
}
);
} else if ("setPassWord" == param) { } else if ("setPassWord" == param) {
//修改密码 //修改密码
this.openPassWord = true; 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