mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-07-02 17:46:07 +08:00
🗃 进一步完善小窗口模式
This commit is contained in:
@@ -231,9 +231,6 @@ export default {
|
||||
this.video.index++
|
||||
}
|
||||
})
|
||||
this.xg.on('error', () => {
|
||||
console.log('play error')
|
||||
})
|
||||
}).catch(err => {
|
||||
this.$m.error(err)
|
||||
})
|
||||
@@ -263,6 +260,7 @@ export default {
|
||||
const h = { ...this.video }
|
||||
history.find({ detail: h.detail }).then(res => {
|
||||
if (res) {
|
||||
h.id = res.id
|
||||
history.update(res.id, h)
|
||||
} else {
|
||||
h.currentTime = ''
|
||||
@@ -347,11 +345,11 @@ export default {
|
||||
this.xg.pause()
|
||||
mini.find().then(res => {
|
||||
const d = { ...this.video }
|
||||
delete d.id
|
||||
d.currentTime = this.xg.currentTime
|
||||
d.id = 0
|
||||
if (res) {
|
||||
mini.update(d)
|
||||
} else {
|
||||
d.id = 0
|
||||
mini.add(d)
|
||||
}
|
||||
ipc.send('min')
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
</div>
|
||||
<div class="tFooter">
|
||||
<span class="tFooter-span">{{data.length}} {{$t('total')}}</span>
|
||||
<span @click="oneClickUpdate">一键更新</span>
|
||||
<span @click="cancleUpdate">取消更新</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -123,15 +121,6 @@ export default {
|
||||
v: e
|
||||
}
|
||||
},
|
||||
oneClickUpdate () {
|
||||
video.all().then(res => {
|
||||
const arr = res.reverse()
|
||||
for (const i of arr) {
|
||||
console.log(i, 'iiiii')
|
||||
}
|
||||
})
|
||||
},
|
||||
cancleUpdate () {},
|
||||
updateEvent (e) {
|
||||
tools.detail_get(e.site, e.detail).then(res => {
|
||||
const nameOne = e.name.replace(/\s*/g, '')
|
||||
|
||||
Reference in New Issue
Block a user