From f6cadf3466c2e2a96035c4433624254ef65f441c Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Thu, 5 May 2022 18:02:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/menu.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/menu.vue b/src/components/menu.vue index 92671a0..a07ad27 100644 --- a/src/components/menu.vue +++ b/src/components/menu.vue @@ -243,12 +243,13 @@ export default { }, gotopage(n) { if (n == "logout") { + console.log(state); if (state == "needLogin") { window.location.href = gisServiceUrl + "/" + gisPortalSiteName + - `/iam/login/#/login?redirect_uri=${window.location.protocol}//${window.location.host}/iam/api/logout`; + `/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"; } -- 2.26.0