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

fix(app-plus): easycom with v2

上级 28f4359e
......@@ -61,7 +61,7 @@ function generateAutoComponentsCode (autoComponents, dynamic = false) {
source
}) => {
if (dynamic) {
components.push(`'${name}': ()=>import(/* webpackChunkName: "${getWebpackChunkName(source)}" */'${source}')`)
components.push(`'${name}': function(){return import(/* webpackChunkName: "${getWebpackChunkName(source)}" */'${source}')}`)
} else {
components.push(`'${name}': require('${source}').default`)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册