Commit 8a9b92b3 by 李嘉林

修改

parent a633f380
...@@ -201,9 +201,11 @@ export default { ...@@ -201,9 +201,11 @@ export default {
this.firstComing = true; this.firstComing = true;
if (this.infoTiming) { if (this.infoTiming) {
clearInterval(this.infoTiming); clearInterval(this.infoTiming);
this.infoTiming=null;
} }
if (this.goodTiming) { if (this.goodTiming) {
clearInterval(this.goodTiming); clearInterval(this.goodTiming);
this.goodTiming=null;
} }
}, },
mounted() {}, mounted() {},
...@@ -227,6 +229,7 @@ export default { ...@@ -227,6 +229,7 @@ export default {
} }
if (this.liveNoticeInfo.liveBroadcastState != 2 && !this.goodTiming) { if (this.liveNoticeInfo.liveBroadcastState != 2 && !this.goodTiming) {
this.goodTiming = setInterval(() => { this.goodTiming = setInterval(() => {
console.log("--------获取商品接口")
this.getGoodsList(); this.getGoodsList();
}, 5000); }, 5000);
} else if ( } else if (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment