提交 5659fdff 编写于 作者: fxy060608's avatar fxy060608

fix(cli): compatible with cnpm

上级 e1049952
...@@ -176,7 +176,7 @@ function hasOwn (obj, key) { ...@@ -176,7 +176,7 @@ function hasOwn (obj, key) {
return hasOwnProperty.call(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 { const {
getTagName getTagName
......
...@@ -109,7 +109,7 @@ export default function parseComponent (vueComponentOptions) { ...@@ -109,7 +109,7 @@ export default function parseComponent (vueComponentOptions) {
} }
}, },
didUnmount () { didUnmount () {
this.$vm.$destroy() this.$vm && this.$vm.$destroy()
}, },
methods: { methods: {
__r: handleRef, __r: handleRef,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册