fix: 修复资产详情页面,toLowerCase 报错

This commit is contained in:
ibuler
2021-05-17 14:24:21 +08:00
committed by 老广
parent f4f4b7ccc1
commit 4d747686cd

View File

@@ -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
}
}