this.$router.push({path:'/indexs'}); //实现点击事件的路由跳转
watch:{
$route(val){ if(this.$route.path=="/shop" || this.$route.path=="/mine"){ this.bool=false; }else if(this.$route.path=="/indexs"){ this.bool=true; } } },