Kaynağa Gözat

实时告警

wy 1 yıl önce
ebeveyn
işleme
1cd5ee0fb4
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  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
 })