未验证 提交 3183378d 编写于 作者: X xlfsummer 提交者: GitHub

修复 app.json 被部分覆盖的问题

上级 350fa0a0
...@@ -39,6 +39,9 @@ function updateMPUsingAutoImportComponents (autoComponents, options) { ...@@ -39,6 +39,9 @@ function updateMPUsingAutoImportComponents (autoComponents, options) {
return return
} }
const resourcePath = options.resourcePath.replace(path.extname(options.resourcePath), '') const resourcePath = options.resourcePath.replace(path.extname(options.resourcePath), '')
if (resourcePath == 'App') {
return
}
const usingAutoImportComponents = Object.create(null) const usingAutoImportComponents = Object.create(null)
autoComponents.forEach(({ autoComponents.forEach(({
name, name,
...@@ -90,4 +93,4 @@ const compilerModule = { ...@@ -90,4 +93,4 @@ const compilerModule = {
module.exports = { module.exports = {
compileTemplate, compileTemplate,
module: compilerModule module: compilerModule
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册