feat: 恢复首页秒杀模块请求数据

merge-requests/21/head
xiaoguang 3 years ago
parent 186b108e88
commit 2eae09f08b

@ -126,7 +126,7 @@ export default {
methods: {
//
getFormatData(list) {
const listCopy = [...list, ...list] || _.cloneDeep(list);
const listCopy = _.cloneDeep(list);
const part = Math.ceil(listCopy.length / CAROUSEL_COUNT);
if (part === 1) {
this.goodsList = [listCopy.splice(0, CAROUSEL_COUNT)];

Loading…
Cancel
Save