Explorar o código

feat: change the minimum display time of a single picture

daigang %!s(int64=3) %!d(string=hai) anos
pai
achega
125411d75c
Modificáronse 1 ficheiros con 1 adicións e 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: