|
@@ -112,6 +112,7 @@ export default {
|
|
|
if (this.panes.length > 1) {
|
|
if (this.panes.length > 1) {
|
|
|
this.timer = setInterval(() => {
|
|
this.timer = setInterval(() => {
|
|
|
this.switchToNext();
|
|
this.switchToNext();
|
|
|
|
|
+ this.startTimer(); // 重新调用,用防抖的方式解决定时器叠加问题
|
|
|
}, this.interval);
|
|
}, this.interval);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|