mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-29 09:49:16 +08:00
fix: tabbar build failed
This commit is contained in:
parent
e2e0f66fe6
commit
4f612f3f23
@ -45,7 +45,7 @@ export default createComponent({
|
||||
const { $route } = vm;
|
||||
const { to } = props;
|
||||
const config = isObject(to) ? to : { path: to };
|
||||
const pathMatched = config.path === $route.path;
|
||||
const pathMatched = 'path' in config && config.path === $route.path;
|
||||
const nameMatched = 'name' in config && config.name === $route.name;
|
||||
|
||||
return pathMatched || nameMatched;
|
||||
|
Loading…
x
Reference in New Issue
Block a user