wy 1 gadu atpakaļ
vecāks
revīzija
1cd5ee0fb4
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      src/main.js

+ 4 - 1
src/main.js

@@ -18,13 +18,16 @@ import { mixin } from '@/mixin'
 import './utils/flexible'
 //表格宽度自适应
 import AFTableColumn from 'af-table-column'
+//视频插件
 require('video.js/dist/video-js.css');
 require('vue-video-player/src/custom-theme.css');
 import hls from 'videojs-contrib-hls';
 import VideoPlayer from 'vue-video-player';
- 
+window.videojs = VideoPlayer.videojs
+require('video.js/dist/lang/zh-CN.js') //视频控件提示文字切换为中文 默认是英文
 Vue.use(hls);
 Vue.use(VideoPlayer);
+//视频插件结束
 Vue.use(Element, {
   size: Cookies.get('size') || 'medium', // element-ui default size
 })