|
@@ -106,6 +106,8 @@ export default {
|
|
|
name: "Home",
|
|
|
data() {
|
|
|
return {
|
|
|
+ //右侧按钮节流
|
|
|
+ myTimer:null,
|
|
|
myFim:[],
|
|
|
videoLength:true,
|
|
|
loadAuto: false,
|
|
@@ -241,7 +243,11 @@ export default {
|
|
|
return 'http://192.168.0.44:8110'+item;
|
|
|
},
|
|
|
slideto(action) {
|
|
|
- this.swiper[action]();
|
|
|
+ if(this.myTimer!==null) return
|
|
|
+ this.myTimer=setTimeout(() => {
|
|
|
+ this.swiper[action]();
|
|
|
+ this.myTimer=null
|
|
|
+ }, 500);
|
|
|
|
|
|
|
|
|
//点击的时候才加载,防止一次运行过多iframe标签导致页面崩溃
|