修复: 解决动画方向不能选择的bug;

This commit is contained in:
iczer 2020-06-20 14:52:48 +08:00
parent 3d568c6caa
commit 63d9407a4a

View File

@ -105,6 +105,9 @@ export default {
} }
}, },
watch: { watch: {
animate() {
this.direction = this.directions[0]
}
}, },
computed: { computed: {
directions() { directions() {
@ -144,7 +147,6 @@ export default {
this.$store.commit('setting/setWeekMode', checked) this.$store.commit('setting/setWeekMode', checked)
}, },
setAnimate() { setAnimate() {
this.direction = this.directions[0]
let animate = { let animate = {
name: this.animate, name: this.animate,
direction: this.direction direction: this.direction