18、VUE 编程式路由

方式一(直接跳):


image.png
image.png

方式二(命名路由):

1、在main.js中命名:


image.png

2、


image.png

image.png

你可能感兴趣的:(18、VUE 编程式路由)