this.$route.fullpath

this.$route.fullpath
通过绑定一个fullPath,可以识别当前页面路由的完整地址,当地址发生改变(包括参数改变)则重新渲染页面(例如动态路由参数的变化)

一个地址:http://xxx/#/console/orderManage/editOrder?id=xxx

path 是:/console/orderManage/editOrder
fullPath 是:/console/orderManage/editOrder?id=xxx
 

猜你喜欢

转载自blog.csdn.net/weixin_44727080/article/details/127649352