This commit is contained in:
hunlongyu
2020-01-19 15:23:51 +08:00
parent e723fe0cf1
commit 9df844dbe8
17 changed files with 737 additions and 37 deletions

View File

@@ -5,6 +5,7 @@ import {
createProtocol,
installVueDevtools
} from 'vue-cli-plugin-electron-builder/lib'
import path from 'path'
const isDevelopment = process.env.NODE_ENV !== 'production'
// Keep a global reference of the window object, if you don't, the window will
@@ -23,7 +24,9 @@ function createWindow () {
webPreferences: {
webSecurity: false,
nodeIntegration: true
}
},
// @ts-ignore
icon: path.join(__static, 'icon.png')
})
if (process.env.WEBPACK_DEV_SERVER_URL) {

View File

@@ -106,8 +106,8 @@ export default Vue.extend({
this.$nextTick(() => {
this.xg = new Hls(this.config)
// @ts-ignore
this.xg.on('error', function () {
console.log('lala')
this.xg.on('error', () => {
this.$message.error('播放失败请重试~')
})
})
}

View File

@@ -5,7 +5,7 @@ Vue.use(Vuex)
export default new Vuex.Store({
state: {
Main: 'Player',
Main: 'Search',
site: 0,
detail: {
show: false,