Update index.js

This commit is contained in:
Harvey committed 2020-12-15 09:04:40 +08:00
1 parent b0ac1eaaaa
commit b0fb0737cc
1 file changed
+3 -1
+3 -1
View File
@@ -20,7 +20,9 @@ export default {
container: this.$refs.artRef,
});
this.$emit('getInstance', this.instance);
this.$nextTick(() => {
this.$emit('getInstance', this.instance);
});
},
beforeDestroy() {
if (this.instance && this.instance.destroy) {