|
@@ -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)
|
|
|
+})
|