test: avoid test error

pull/471/head
tangjinzhou 6 years ago
parent c34a446f73
commit 041cca740d

@ -210,9 +210,11 @@ export default {
enter: (el, done) => { enter: (el, done) => {
// align updated // align updated
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.alignInstance) {
this.$refs.alignInstance.$nextTick(() => { this.$refs.alignInstance.$nextTick(() => {
animate(el, `${transitionName}-enter`, done); animate(el, `${transitionName}-enter`, done);
}); });
}
}); });
}, },
leave: (el, done) => { leave: (el, done) => {

Loading…
Cancel
Save