Browse Source

Merge branch 'hqyDev' of http://git.dayaedu.com/huangqiyong/pptList into online

黄琪勇 6 days ago
parent
commit
4e716bfb14
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/libs/jsonTool.ts

+ 4 - 0
src/libs/jsonTool.ts

@@ -84,6 +84,10 @@ function formatSlides(slides: any[]): any[] {
         }
       }
     })
+    // 兼容动画 妙极课动画没有effect属性  先把妙极客的动画去掉  之后做兼容
+    if (item.animations) {
+      item.animations = (item.animations || []).filter((item: Record<string, any>) => item.effect)
+    }
     return item
   })
 }