温红权 3 年 前
コミット
41f21db7e4

ファイルの差分が大きいため隠しています
+ 0 - 0
ruoyi-ui/public/aliplayer-hls-min.js


ファイルの差分が大きいため隠しています
+ 0 - 0
ruoyi-ui/public/aliplayer-min.css


ファイルの差分が大きいため隠しています
+ 1 - 0
ruoyi-ui/public/aliplayer-min.js


+ 1 - 1
ruoyi-ui/src/components/map/index.vue

@@ -423,7 +423,7 @@ export default {
           autoplay:true,
           rePlay:true,
           isLive: true, //切换为直播流的时候必填
-          format: 'm3u8'  //切换为直播流的时候必填
+          format: 'm3u8',  //切换为直播流的时候必填
         },
         source: "http://1252093142.vod2.myqcloud.com/4704461fvodcq1252093142/48c8a9475285890781000441992/playlist.m3u8",
       pointDevice: {

+ 19 - 12
ruoyi-ui/src/main.js

@@ -31,6 +31,9 @@ import ImageUpload from "@/components/ImageUpload"
 import DictTag from '@/components/DictTag'
 // 头部标签组件
 import VueMeta from 'vue-meta'
+import VueAliplayerV2 from "vue-aliplayer-v2";
+
+
 
 // 全局方法挂载
 Vue.prototype.getDicts = getDicts
@@ -44,16 +47,16 @@ Vue.prototype.download = download
 Vue.prototype.handleTree = handleTree
 Vue.prototype.$echarts = echarts
 
-Vue.prototype.msgSuccess = function (msg) {
-  this.$message({ showClose: true, message: msg, type: "success" });
+Vue.prototype.msgSuccess = function(msg) {
+    this.$message({ showClose: true, message: msg, type: "success" });
 }
 
-Vue.prototype.msgError = function (msg) {
-  this.$message({ showClose: true, message: msg, type: "error" });
+Vue.prototype.msgError = function(msg) {
+    this.$message({ showClose: true, message: msg, type: "error" });
 }
 
-Vue.prototype.msgInfo = function (msg) {
-  this.$message.info(msg);
+Vue.prototype.msgInfo = function(msg) {
+    this.$message.info(msg);
 }
 
 // 全局组件挂载
@@ -77,14 +80,18 @@ Vue.use(VueMeta)
  */
 
 Vue.use(Element, {
-  size: Cookies.get('size') || 'medium' // set element-ui default size
+    size: Cookies.get('size') || 'medium' // set element-ui default size
 })
+Vue.use(VueAliplayerV2, {
+    cssLink: "./aliplayer-min.css",
+    scriptSrc: "./aliplayer-min.js",
+});
 
 Vue.config.productionTip = false
 
 new Vue({
-  el: '#app',
-  router,
-  store,
-  render: h => h(App)
-})
+    el: '#app',
+    router,
+    store,
+    render: h => h(App)
+})

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません