diff --git a/packages/uni-template-compiler/lib/util.js b/packages/uni-template-compiler/lib/util.js index 49ecde3fe8f6d563046c3fb9953038ed9cff6a3b..e8815049a03a7cdec188e91741ef01f44b1081ff 100644 --- a/packages/uni-template-compiler/lib/util.js +++ b/packages/uni-template-compiler/lib/util.js @@ -176,7 +176,7 @@ function hasOwn (obj, key) { return hasOwnProperty.call(obj, key) } -const tags = require('../../uni-cli-shared/lib/tags') +const tags = require('@dcloudio/uni-cli-shared/lib/tags') const { getTagName diff --git a/src/platforms/mp-alipay/runtime/wrapper/component-parser.js b/src/platforms/mp-alipay/runtime/wrapper/component-parser.js index 5d8a9be9754a5e8a69052d06d75a3da8ade5c807..1aa645e0a5161085caed435f4894911602a84a83 100644 --- a/src/platforms/mp-alipay/runtime/wrapper/component-parser.js +++ b/src/platforms/mp-alipay/runtime/wrapper/component-parser.js @@ -109,7 +109,7 @@ export default function parseComponent (vueComponentOptions) { } }, didUnmount () { - this.$vm.$destroy() + this.$vm && this.$vm.$destroy() }, methods: { __r: handleRef,