diff --git a/src/components/menu.vue b/src/components/menu.vue index ac301a7e3068623bfb79602eecb1dd75610dff7d..15f32f92f37f7e88091f5297f48880640c1ce849 100644 --- a/src/components/menu.vue +++ b/src/components/menu.vue @@ -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);