소스 검색

feat: change the minimum display time of a single picture

daigang 3 년 전
부모
커밋
125411d75c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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: