From 0f6fe44164dee104132c29bdd8b09a1caf8ef0c0 Mon Sep 17 00:00:00 2001 From: shaohq Date: Sat, 30 Apr 2022 09:55:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E7=BE=A4=E8=A7=84=E5=88=92=E9=A1=B5?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=90=8E=E8=BF=9B=E5=85=A5=E4=B8=8A=E6=AC=A1?= =?UTF-8?q?=E6=89=93=E5=BC=80=E7=9A=84=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/clusters/plan/Plan.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/views/clusters/plan/Plan.vue b/web/src/views/clusters/plan/Plan.vue index 815c7aa..c86e495 100644 --- a/web/src/views/clusters/plan/Plan.vue +++ b/web/src/views/clusters/plan/Plan.vue @@ -275,8 +275,12 @@ export default { }, components: { Node, ConfigKuboardSpray, ConfigK8sCluster, ConfigGlobal, ConfigAddons, ConfigNode, ConfigEtcd, AddNode, CopyGapNodeToInventory }, mounted () { + this.currentPropertiesTab = sessionStorage.getItem(this.cluster.name + '_plan_tab') || 'global_config' }, watch: { + currentPropertiesTab: function () { + sessionStorage.setItem(this.cluster.name + '_plan_tab', this.currentPropertiesTab) + }, 'inventory.all.hosts': function() { if (this.currentPropertiesTab.indexOf('NODE_') !== 0) { return