diff --git a/src/components/orderMessage/index.vue b/src/components/orderMessage/index.vue index d1d015a..4a18ead 100644 --- a/src/components/orderMessage/index.vue +++ b/src/components/orderMessage/index.vue @@ -54,12 +54,8 @@ this.list = data; var that = this this.intnum = setInterval(_ => { - if (this.activeIndex < this.list.length) { - this.activeIndex += 1; - that.list.push(that.list[0]); - } else { - this.activeIndex = 0; - } + that.list.push(that.list[this.activeIndex]); + this.activeIndex += 1; }, 1000); }).catch((response)=>{ console.log(response);