* Update subscription view to render video as watched ASAP (#3353)

Before this change a view change (back & forth) is needed if video is watched in another window
This commit is contained in:
PikachuEXE 2023-03-27 02:21:56 +08:00 committed by GitHub
parent 94f21f293d
commit 6e44f1af9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -327,6 +327,11 @@ export default defineComponent({
return this.$i18n.locale.replace('_', '-')
},
},
watch: {
historyIndex() {
this.checkIfWatched()
},
},
mounted: function () {
this.parseVideoData()
this.checkIfWatched()