秒杀逻辑修改

master
于肖磊 2024-09-20 18:15:23 +08:00
parent ad6d6ba97a
commit a1a7c99ead
1 changed files with 4 additions and 2 deletions

View File

@ -246,7 +246,10 @@
this.init();
},
beforeDestroy() {
clearInterval(this.intervalId);
//
if (!isEmpty(this.intervalId)) {
clearInterval(this.intervalId);
}
},
methods: {
isEmpty,
@ -330,7 +333,6 @@
//
let nav_list = [];
cloneList.forEach(item => {
console.log(item);
nav_list.push({
split_list: [ item ],
});