Explorar el Código

feat: change the minimum display time of a single picture

daigang hace 3 años
padre
commit
125411d75c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/bigscreen/core/utils.js

+ 1 - 1
src/views/bigscreen/core/utils.js

@@ -171,7 +171,7 @@ export function getDuration (node) {
   return node.widgets.reduce((duration, widget) => {
     switch (widget.type) {
       case imageType:
-        return widget.sources.length > 1 ? Math.max(widget.sources.length * widget.interval, duration) : duration
+        return Math.max(widget.sources.length * widget.interval, duration)
       case videoType:
         return Math.max(widget.sources.reduce((total, { duration }) => duration ? total + duration : total, 0), duration)
       case liveType: