From 6af04ce1f6f1f6e3c737dc2cb3bf6175737594d0 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Fri, 2 Jun 2023 09:12:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor(web):=20tab=20=E9=A1=B5=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E7=A6=BB=E5=BC=80=E9=94=80=E6=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不然每个 tab 页都会在背地里访问 url,造成服务压力 --- web/components/yarn-cluster-tab.js | 1 + web/index.html | 1 + 2 files changed, 2 insertions(+) diff --git a/web/components/yarn-cluster-tab.js b/web/components/yarn-cluster-tab.js index 96accf4..ba56b59 100644 --- a/web/components/yarn-cluster-tab.js +++ b/web/components/yarn-cluster-tab.js @@ -5,6 +5,7 @@ function yarnClusterTab() { { type: 'tabs', mountOnEnter: true, + unmountOnExit: true, tabsMode: 'line', tabs: [ { diff --git a/web/index.html b/web/index.html index 2ebe59a..4499b5d 100644 --- a/web/index.html +++ b/web/index.html @@ -52,6 +52,7 @@ body: { type: 'tabs', mountOnEnter: true, + unmountOnExit: true, tabsMode: 'strong', tabs: [ // logTab(),