Browse Source

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

tnt group 3 years ago
parent
commit
491246205e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/packages/components/Informations/Mores/Video/index.vue

+ 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"