|
@@ -99,20 +99,47 @@ export default {
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (res === "confirm") {
|
|
if (res === "confirm") {
|
|
- //TODO先执行退出登录
|
|
|
|
- this.$store.commit("setUserInfo", undefined);
|
|
|
|
- this.$store.commit("setToken", undefined);
|
|
|
|
- this.$store.commit("setMenus", undefined);
|
|
|
|
- this.$store.commit("setTabList", []);
|
|
|
|
- this.$cookie.delete("userInfo");
|
|
|
|
- this.$cookie.delete("menus");
|
|
|
|
- this.$cookie.delete("token");
|
|
|
|
- window.sessionStorage.agileauthtoken = undefined;
|
|
|
|
- window.sessionStorage.menus = undefined;
|
|
|
|
- window.sessionStorage.userInfo = undefined;
|
|
|
|
- window.sessionStorage.childrenMenus = undefined
|
|
|
|
|
|
+ this.$store.commit("setUserInfo", undefined);
|
|
|
|
+ this.$store.commit("setToken", undefined);
|
|
|
|
+ this.$store.commit("setMenus", undefined);
|
|
|
|
+ this.$store.commit("setTabList", []);
|
|
|
|
+ this.$cookie.delete("userInfo");
|
|
|
|
+ this.$cookie.delete("menus");
|
|
|
|
+ this.$cookie.delete("token");
|
|
|
|
+ window.sessionStorage.agileauthtoken = undefined;
|
|
|
|
+ window.sessionStorage.menus = undefined;
|
|
|
|
+ window.sessionStorage.userInfo = undefined;
|
|
|
|
+ window.sessionStorage.childrenMenus = undefined;
|
|
|
|
+ window.opener=null;
|
|
|
|
+ window.open('','_self');
|
|
|
|
+ window.close();
|
|
|
|
+ // window.parent.close();
|
|
//返回到登录页面
|
|
//返回到登录页面
|
|
- this.$router.push("/login");
|
|
|
|
|
|
+ // this.$router.push("/login");
|
|
|
|
+ // this.$http({
|
|
|
|
+ // url: "http://cas.hl.cmcc/cas/logout",
|
|
|
|
+ // method: "get",
|
|
|
|
+ // headers: {
|
|
|
|
+ // "Access-Control-Allow-Origin": "http://cas.hl.cmcc/cas/logout",
|
|
|
|
+ // },
|
|
|
|
+ // }).then((res) => {
|
|
|
|
+ // //TODO先执行退出登录
|
|
|
|
+ // this.$store.commit("setUserInfo", undefined);
|
|
|
|
+ // this.$store.commit("setToken", undefined);
|
|
|
|
+ // this.$store.commit("setMenus", undefined);
|
|
|
|
+ // this.$store.commit("setTabList", []);
|
|
|
|
+ // this.$cookie.delete("userInfo");
|
|
|
|
+ // this.$cookie.delete("menus");
|
|
|
|
+ // this.$cookie.delete("token");
|
|
|
|
+ // window.sessionStorage.agileauthtoken = undefined;
|
|
|
|
+ // window.sessionStorage.menus = undefined;
|
|
|
|
+ // window.sessionStorage.userInfo = undefined;
|
|
|
|
+ // window.sessionStorage.childrenMenus = undefined;
|
|
|
|
+ //
|
|
|
|
+ // window.location.href = " http://cas.hl.cmcc/cas/login?service=http%3A%2F%2F10.230.26.15%3A8000%2Fspfm%2Fsysmgr%2FssLogin%3FsysFlag%3D0";
|
|
|
|
+ // });
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|