061901
This commit is contained in:
parent
8cf774690a
commit
481f06841b
2
.babelrc
2
.babelrc
@ -8,5 +8,5 @@
|
||||
}],
|
||||
"stage-2"
|
||||
],
|
||||
"plugins": ["transform-vue-jsx", "transform-runtime"]
|
||||
"plugins": ["transform-vue-jsx", "transform-runtime", "transform-es2015-arrow-functions"]
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ import 'styles/reset.css'
|
||||
import 'swiper/dist/css/swiper.css'
|
||||
import 'vue-layer/lib/vue-layer.css'
|
||||
import axios from 'axios'
|
||||
import flvjs from 'flv.js'
|
||||
import flvjs from 'flv.js/dist/flv.min'
|
||||
Vue.use(flvjs)
|
||||
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'
|
||||
Vue.prototype.$axios = axios
|
||||
|
@ -38,7 +38,7 @@
|
||||
import Header from '@/common/components/Header'
|
||||
import Footer from '@/common/components/Footer'
|
||||
import axios from 'axios'
|
||||
import flvjs from 'flv.js'
|
||||
import flvjs from 'flv.js/dist/flv.min'
|
||||
var player
|
||||
export default {
|
||||
name: 'BroadcastDetail',
|
||||
|
@ -1,5 +1,6 @@
|
||||
module.exports = {
|
||||
chainWebpack: config => {
|
||||
config.entry.app = ['babel-polyfill', './src/main.js'];
|
||||
config.entry('main').add('babel-polyfill') // main是入口js文件
|
||||
},
|
||||
transpileDependencies: ['flv.js']
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user