引入:https://q.cnblogs.com/q/88214/
解决方法:
添加路由监听,路由改变时执行监听方法
methods:{ ?????fetchData(){ ??????????console.log(‘路由发送变化doing...‘); ????} ?}, ?created() { ???????var self = this; ???????self.fetchData(); ?}, ?watch:{ ?????‘$route‘:‘fetchData‘ ?},
vue监听路由的变化,跳转到同一个页面时,Url改变但视图未重新加载问题
原文地址:https://www.cnblogs.com/ilimengyang/p/9197797.html