mirror of
https://github.com/youzan/vant.git
synced 2026-05-05 01:00:55 +08:00
[bugfix] Swipe: not initialize when activated (#2297)
This commit is contained in:
@@ -82,6 +82,14 @@ export default create({
|
||||
}
|
||||
},
|
||||
|
||||
activated() {
|
||||
if (this.rendered) {
|
||||
this.initialize();
|
||||
}
|
||||
|
||||
this.rendered = true;
|
||||
},
|
||||
|
||||
destroyed() {
|
||||
this.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user