[bugfix] Swipe: not initialize when activated (#2297)

This commit is contained in:
neverland 2018-12-15 17:15:22 +08:00 committed by GitHub
parent eca1b6970e
commit 5ac7666230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,14 @@ export default create({
}
},
activated() {
if (this.rendered) {
this.initialize();
}
this.rendered = true;
},
destroyed() {
this.clear();