diff --git a/config/dev.env.js b/config/dev.env.js index e7039f8..0bc006c 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -2,7 +2,7 @@ const merge = require('webpack-merge') const prodEnv = require('./prod.env') //是否开发状态 -const isDev = false; +const isDev = true; //开发API地址 // const devAdrress='"http://weberp.xlyprint.cn/xlyReport"'; const devAdrress='"http://weberp.xlyprint.cn:8888/xlyReport"'; diff --git a/src/views/bigscreenDesigner/designer/widget/div/widgetHtmlSlider.vue b/src/views/bigscreenDesigner/designer/widget/div/widgetHtmlSlider.vue index 254840b..d5dc86b 100644 --- a/src/views/bigscreenDesigner/designer/widget/div/widgetHtmlSlider.vue +++ b/src/views/bigscreenDesigner/designer/widget/div/widgetHtmlSlider.vue @@ -22,6 +22,9 @@ :autoplay="autoPlay" :loop="true" @change="handleSlideChange" + @mouseenter.native="handleMouseEnter" + arrow="always" + :hover="false" ref="carousel">
@@ -164,6 +167,7 @@ export default { this.options = this.value; }, mounted() { + this.$refs.carousel.handleMouseEnter=()=>{}; // 初始加载第一个幻灯片 this.slides[0].loading = true; this.startProgressBar(); @@ -270,6 +274,10 @@ export default { this.slides[index].error = true; } }, + handleMouseEnter(){ + this.$refs.carousel.handleMouseEnter=()=>{}; + }, + handleSlideChange(currentIndex, prevIndex) { this.currentSlide = currentIndex; // 计算下一个幻灯片索引(用于预加载)