I found that adding name doesn’t work. It will display normally without adding
过去多啦不再A梦2017-05-19 10:48:24
For example, such a routing configuration
routes: [
{ name:'category', path: '/category', component: index },
]
Then :to="{name: 'category'}"
=== to="/category"
name can only be used with params