From d4faa9db66b753c14048f2a9c2ac3ef85939a5f7 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 17 Jan 2020 16:51:16 +0800 Subject: [PATCH] fix(mp-toutiao): destroy #1285 --- .../mp-weixin/runtime/wrapper/component-base-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/mp-weixin/runtime/wrapper/component-base-parser.js b/src/platforms/mp-weixin/runtime/wrapper/component-base-parser.js index e560022d58..b088f3cac6 100644 --- a/src/platforms/mp-weixin/runtime/wrapper/component-base-parser.js +++ b/src/platforms/mp-weixin/runtime/wrapper/component-base-parser.js @@ -77,7 +77,7 @@ export default function parseBaseComponent (vueComponentOptions, { } }, detached () { - this.$vm.$destroy() + this.$vm && this.$vm.$destroy() } }, pageLifetimes: { -- GitLab