mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-08-29 20:29:46 +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 { $route } = vm;
|
||||||
const { to } = props;
|
const { to } = props;
|
||||||
const config = isObject(to) ? to : { path: to };
|
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;
|
const nameMatched = 'name' in config && config.name === $route.name;
|
||||||
|
|
||||||
return pathMatched || nameMatched;
|
return pathMatched || nameMatched;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user