src/views/home/index.vue @@ -29,7 +29,7 @@ }, watch:{ //监听路由 $route(to,from){ if(to.path == '/postDetails'){ if (to.path === '/postDetails') { this.isShow = false } }