fix: video preview click next or prev button subtitles not update (#2423)
This commit is contained in:
parent
a4ef02a47b
commit
6744cd47ce
|
@ -167,7 +167,6 @@ export default {
|
||||||
nextLink: "",
|
nextLink: "",
|
||||||
listing: null,
|
listing: null,
|
||||||
name: "",
|
name: "",
|
||||||
subtitles: [],
|
|
||||||
fullSize: false,
|
fullSize: false,
|
||||||
showNav: true,
|
showNav: true,
|
||||||
navTimeout: null,
|
navTimeout: null,
|
||||||
|
@ -201,6 +200,12 @@ export default {
|
||||||
isResizeEnabled() {
|
isResizeEnabled() {
|
||||||
return resizePreview;
|
return resizePreview;
|
||||||
},
|
},
|
||||||
|
subtitles() {
|
||||||
|
if (this.req.subtitles) {
|
||||||
|
return api.getSubtitlesURL(this.req);
|
||||||
|
}
|
||||||
|
return [];
|
||||||
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route: function () {
|
$route: function () {
|
||||||
|
@ -266,10 +271,6 @@ export default {
|
||||||
this.autoPlay = false;
|
this.autoPlay = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.req.subtitles) {
|
|
||||||
this.subtitles = api.getSubtitlesURL(this.req);
|
|
||||||
}
|
|
||||||
|
|
||||||
let dirs = this.$route.fullPath.split("/");
|
let dirs = this.$route.fullPath.split("/");
|
||||||
this.name = decodeURIComponent(dirs[dirs.length - 1]);
|
this.name = decodeURIComponent(dirs[dirs.length - 1]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue