瀏覽代碼

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

tnt group 3 年之前
父節點
當前提交
491246205e
共有 1 個文件被更改,包括 2 次插入0 次删除
  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"