data() {
return {
activeName: "/home",
};
},
watch: {
$route: {
immediate: true,
deep: true,
handler(to) {
this.activeName = to.path;
},
},
},
移动端页面刷新,仍然定到当前页面
最新推荐文章于 2024-05-30 14:05:32 发布