From d9fb679eb13005cbc4d053b826d7fe0e9fd073a9 Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Wed, 18 May 2022 15:40:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/menu.vue | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/menu.vue b/src/components/menu.vue index ac301a7..15f32f9 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); -- 2.26.0