Browse Source

优化建设右侧的排序问题

dev
dengyinhuan 2 years ago
parent
commit
1f28a27ab4
  1. 2
      web/client/src/sections/quanju/containers/footer/build/Rightbottom.js

2
web/client/src/sections/quanju/containers/footer/build/Rightbottom.js

@ -32,6 +32,8 @@ function Rightbottom(props) {
// {name: '等外公路', value: 30}, // {name: '等外公路', value: 30},
// ] // ]
console.log(data,'数据')
data?.sort((a,b)=>b.value - a.value)
data?.forEach(d => { data?.forEach(d => {
name.push(d.name) name.push(d.name)
emptyName.push({ emptyName.push({

Loading…
Cancel
Save