From 623f40c1080fe71be30a4a4d9893a3c7b1a2fd9b Mon Sep 17 00:00:00 2001 From: Justineo Date: Tue, 23 Nov 2021 12:57:16 +0800 Subject: [PATCH] fix: should use the safe removal method upon destroy --- src/Preview.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Preview.vue b/src/Preview.vue index 3488a6c..057c55a 100644 --- a/src/Preview.vue +++ b/src/Preview.vue @@ -87,7 +87,7 @@ export default { this.renderComponent(this.code.trim()); }, destroyed() { - this.removeScopedStyle(); + this.removeStyle(); }, watch: { code(value) {