From d8df35a1d7b80fce34154a30527aee15fe265765 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Tue, 15 Oct 2024 11:29:58 +0800 Subject: [PATCH] perf: The platform gets activeMenu and adds a default value --- src/views/assets/Platform/PlatformList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/assets/Platform/PlatformList.vue b/src/views/assets/Platform/PlatformList.vue index fdfe78ec2..b8dc7c8c5 100644 --- a/src/views/assets/Platform/PlatformList.vue +++ b/src/views/assets/Platform/PlatformList.vue @@ -162,7 +162,7 @@ export default { }, activated() { setTimeout(() => { - this.tab.activeMenu = window.localStorage.getItem('lastTab') + this.tab.activeMenu = window.localStorage.getItem('lastTab') || 'host' this.$refs.genericListTable.reloadTable() }, 300) },