Ver Fonte

fix: 修复使用视频组件时保存画板缩略图的异常

tnt group há 3 anos atrás
pai
commit
491246205e

+ 2 - 0
src/packages/components/Informations/Mores/Video/index.vue

@@ -1,9 +1,11 @@
 <!-- eslint-disable vue/multi-word-component-names -->
 <template>
+  <!-- 重要:需要设置 crossOrigin="anonymous",否则保存画板缩略图会失败 -->
   <video
     ref="vVideoRef"
     class="go-video"
     preload="auto"
+    crossOrigin="anonymous"
     playsinline
     :loop="option.loop"
     :autoplay="option.autoplay"