😑 日常写BUG, 改BUG

This commit is contained in:
hunlongyu
2020-05-31 13:40:34 +08:00
parent 79adbd1f81
commit 0e571efd6f
2 changed files with 4 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "zy",
"version": "1.0.14",
"version": "1.0.15",
"private": true,
"author": {
"name": "Hunlongyu",

View File

@@ -193,6 +193,9 @@ export default {
},
'video.index' () {
this.getUrls()
},
'video.detail' () {
this.getUrls()
}
},
methods: {
@@ -312,24 +315,20 @@ export default {
this.right.type = ''
},
nextEvent () {
console.log(this.video.index, 'inex 1')
if (this.video.index < this.right.listData.length - 1) {
this.video.index++
this.video.currentTime = 0
} else {
this.$m.warning(this.$t('last_video'))
}
console.log(this.video.index, 'inex 2')
},
prevEvent () {
console.log(this.video.index, 'inex 3')
if (this.video.index > 0) {
this.video.index--
this.video.currentTime = 0
} else {
this.$m.warning(this.$t('first_video'))
}
console.log(this.video.index, 'inex 4')
},
listEvent () {
if (this.right.type === 'list') {