From 4d747686cd0e56a769a1991665dd78b53d4d73cc Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 17 May 2021 14:24:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B5=84=E4=BA=A7?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=EF=BC=8CtoLowerCase=20?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/TabPage/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }