vue实现分类目录效果
cateAll(){
this.classId=""; this.bus.$emit("classidchange", this.classId); this.flag=true; if(this.$route.query.id){ this.$router.push({path: '/weblist', query: {classid: this.classId}}) } }, setScale(val,index){ this.flag=false; this.currentIndex=index; this.classId=val.classId; this.bus.$emit("classidchange", this.classId); if(this.$route.query.id){ this.$router.push({path: '/weblist', query: {classid: val.classId}}) } },分类目录
- 全部分类 ({{result}})
- {{cate.className}} ({{cate.sum}})