fix logic

This commit is contained in:
Weidi Deng 2021-01-05 15:49:46 +08:00
parent 04f847042a
commit 6e993dd095

View File

@ -218,7 +218,7 @@ export default {
if (this.isGallery && this.listing[j].type === 'image') {
this.previousLink = this.listing[j].url
break
} else if (mediaTypes.includes(this.listing[j].type)) {
} else if (!this.isGallery && mediaTypes.includes(this.listing[j].type)) {
this.previousLink = this.listing[j].url
break
}
@ -228,7 +228,7 @@ export default {
if (this.isGallery && this.listing[j].type === 'image') {
this.nextLink = this.listing[j].url
break
} else if (mediaTypes.includes(this.listing[j].type)) {
} else if (!this.isGallery && mediaTypes.includes(this.listing[j].type)) {
this.nextLink = this.listing[j].url
break
}