清理多余的mini窗口代码

This commit is contained in:
buvta
2020-11-19 18:07:17 +08:00
parent 8521de2844
commit 729dab765c
5 changed files with 2 additions and 602 deletions

View File

@@ -226,7 +226,7 @@ import mt from 'mousetrap'
import { directive as onClickaway } from 'vue-clickaway'
import { exec, execFile } from 'child_process'
const { remote, ipcRenderer, clipboard } = require('electron')
const { remote, clipboard } = require('electron')
const VIDEO_DETAIL_CACHE = {}
@@ -1368,16 +1368,6 @@ export default {
mounted () {
this.playerInstall()
this.xg = new HlsJsPlayer(this.config)
ipcRenderer.on('miniClosed', async () => {
const db = await history.find({ site: this.video.key, ids: this.video.info.id })
if (db) {
if (this.video.info.index !== db.index) {
this.video.info.index = db.index
} else {
this.getUrls()
}
}
})
this.bindEvent()
this.minMaxEvent()
},