fix: autoplay (#6771) close #6768

pull/6799/head
Cherry7 2023-07-29 12:18:58 +08:00 committed by GitHub
parent b49540a339
commit 2c39273cc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -51,6 +51,15 @@ export default {
};
},
watch: {
autoplay(newValue, oldValue) {
if (!oldValue && newValue) {
this.handleAutoPlay('playing');
} else if (newValue) {
this.handleAutoPlay('update');
} else {
this.pause('paused');
}
},
__propsSymbol__() {
const nextProps = this.$props;
const spec = {