From 91dbdd5dc2a8d6f56e108ceafb640905d0f870f8 Mon Sep 17 00:00:00 2001 From: bwcx_jzy Date: Wed, 23 Aug 2023 16:39:04 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=9C=AA=E9=85=8D=E7=BD=AE=E9=9B=86?= =?UTF-8?q?=E7=BE=A4=E5=9C=B0=E5=9D=80=E6=97=B6=E6=97=A0=E6=B3=95=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=B7=A5=E4=BD=9C=E7=A9=BA=E9=97=B4=20pre=20commit=20?= =?UTF-8?q?2.10.42.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-vue/src/pages/layout/user-header.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-vue/src/pages/layout/user-header.vue b/web-vue/src/pages/layout/user-header.vue index dbc67fe91..1c919ba98 100644 --- a/web-vue/src/pages/layout/user-header.vue +++ b/web-vue/src/pages/layout/user-header.vue @@ -773,7 +773,7 @@ export default { const cluster = this.myClusterList.find((item2) => { return item2.id === item.clusterInfoId; }); - if (cluster && item.url && location.href.indexOf(cluster.url) !== 0) { + if (cluster && cluster.url && location.href.indexOf(cluster.url) !== 0) { let url = `${cluster.url}/#/${this.$route.fullPath}`.replace(/[\\/]+[\\/]/g, "/").replace(":/", "://"); url = url.replace(`wid=${this.selectWorkspace.id}`, `wid=${item.id}`); // console.log(location.href.indexOf(cluster.url), url);