trim spaces

This commit is contained in:
liangping 2022-08-31 19:57:58 +08:00
parent 25947adb43
commit 1676247d67

View File

@ -60,7 +60,7 @@ export const isNavLinkActive = link => {
if (chainCompare) { if (chainCompare) {
localStorage.setItem('selected_chain', link.route.params.chain) localStorage.setItem('selected_chain', link.route.params.chain)
} }
return matchedRoutes.some(route => { return matchedRoutes.some(route => {
const actived = (route.name === resolveRoutedName && chainCompare) || route.meta.navActiveLink === resolveRoutedName const actived = (route.name === resolveRoutedName && chainCompare) || route.meta.navActiveLink === resolveRoutedName
return actived return actived