Vue的router路由跳转传参——实现跳转时url不显示参数

http://localhost:8080/login/sss  # 效果实现前
http://localhost:8080/login  # 效果实现后

img

img


方法:使用Vue组件的name属性进行跳转

img

img

img

猜你喜欢

转载自www.cnblogs.com/guanxiying/p/13179808.html