|
@@ -190,13 +190,12 @@
|
|
|
getMenu({currentPage:1,pageSize:5,userId,belongType:2}).then(res=>{
|
|
|
if(res.state == 'Success'){
|
|
|
this.typeList = res.content.records
|
|
|
- const redRoad = this.typeList.find(item=>item.columnName == '红色革命');
|
|
|
- // 把红色革命放到列表的第一个
|
|
|
- if(redRoad){
|
|
|
- this.typeList = this.typeList.filter(item=>item.columnName != '红色革命')
|
|
|
- this.typeList.unshift(redRoad)
|
|
|
- }
|
|
|
- console.log(res.content.records);
|
|
|
+ // const redRoad = this.typeList.find(item=>item.columnName == '红色革命');
|
|
|
+ // // 把红色革命放到列表的第一个
|
|
|
+ // if(redRoad){
|
|
|
+ // this.typeList = this.typeList.filter(item=>item.columnName != '红色革命')
|
|
|
+ // this.typeList.unshift(redRoad)
|
|
|
+ // }
|
|
|
}
|
|
|
})
|
|
|
},
|