diff --git a/src/layout/components/TabPage/index.vue b/src/layout/components/TabPage/index.vue index 839771208..4488cbeb4 100644 --- a/src/layout/components/TabPage/index.vue +++ b/src/layout/components/TabPage/index.vue @@ -89,7 +89,7 @@ export default { for (const preTab of preActiveTabs) { for (const tabName in this.tabIndices) { - if (preTab.toLowerCase() === tabName.toLowerCase()) { + if (preTab && tabName && preTab.toLowerCase() === tabName.toLowerCase()) { return tabName } }