Skip to content

Commit

Permalink
集群规划页刷新后进入上次打开的标签
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohq committed Apr 30, 2022
1 parent 6329152 commit 0f6fe44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/views/clusters/plan/Plan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f6fe44

Please sign in to comment.