解决秒杀活动可能在首页出现的bug

master
lemon橪 2022-07-08 11:12:13 +08:00
parent 86fa39d7af
commit 12839eee8d
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export default {
methods: {
getIndexData () {
//
indexData({ clientType: 'PC' }).then((res) => {
indexData({ clientType: 'PC' }).then(async (res) => {
if (res.success) {
let dataJson = JSON.parse(res.result.pageData);
//
@ -65,7 +65,7 @@ export default {
this.carouselLarge = true
this.carouselOpacity = true
} else if (type === 'seckill') {
let seckill = this.getListByDay()
let seckill = await this.getListByDay()
dataJson.list[i].options.list = seckill
}
}