Commit d9fb679e authored by 张俊's avatar 张俊

退出登录

parent 6b5f6954
Pipeline #76540 passed with stage
......@@ -245,15 +245,7 @@ export default {
gotopage(n) {
if (n == "logout") {
console.log(state);
if (state == "needLogin") {
window.location.href =
gisServiceUrl +
"/" +
gisPortalSiteName +
`/sharing/rest/oauth2/signout?client_id=arcgisonline&redirect_uri=${window.location.protocol}//${window.location.host}/iam/api/logout`;
} else {
window.location.href = "/iam/api/logout";
}
window.location.href = "/iam/api/logout";
} else if (n == "login") {
let path = this.$route.path;
window.location.href = "/iam/login/#/login?ReturnUrl=" + encodeURIComponent(window.location.href);
......
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