罗世杰:修改Dropdown.vue的bug

This commit is contained in:
LuoShijie
2023-11-16 22:26:18 +08:00
parent 00ebbba179
commit 10136f43f7
5 changed files with 29 additions and 8 deletions

View File

@@ -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() {