罗世杰:修改Dropdown.vue的bug
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
notice: [],
|
||||
chooseIndex: 0,
|
||||
statNum: {},
|
||||
swiperList: []
|
||||
swiperList: [],
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@@ -70,7 +70,12 @@
|
||||
},
|
||||
getClassList() {
|
||||
this.$api.getClassList().then(res => {
|
||||
console.log(res.data.data);
|
||||
let data = res.data.data
|
||||
data.sort((a,b)=>{
|
||||
return a.id - b.id
|
||||
})
|
||||
data = data.map(item => item.name)
|
||||
uni.setStorageSync('classList', JSON.stringify(data))
|
||||
})
|
||||
},
|
||||
getRegionList() {
|
||||
|
||||
Reference in New Issue
Block a user