I found that adding name doesn’t work. It will display normally without adding
闭关修行中......
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
:to="{name: 'category'}"
to="/category"
For example, such a routing configuration
Then
:to="{name: 'category'}"
===to="/category"
name can only be used with params