扫码关注官方订阅号
我发现加了name 反而用不了。 不加还好正常显示
闭关修行中......
如, 这样的一个路由配置
routes: [ { name:'category', path: '/category', component: index }, ]
那么 :to="{name: 'category'}" === to="/category"name 只能和 params 一起用
:to="{name: 'category'}"
to="/category"
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
如, 这样的一个路由配置
那么
:to="{name: 'category'}"===to="/category"name 只能和 params 一起用