提交 ffd13efa 编写于 作者: Q qiang

fix: 修复使用 uni.chooseLocation 时摇树优化报错的问题

上级 add3483f
......@@ -102,7 +102,7 @@ const isAppComponents = filepath => {
const isCoreComponents = filepath => {
return path.extname(filepath) === '.vue' &&
filepath.indexOf('/core/view/components/') === 0
(filepath.indexOf('/core/view/components/') === 0 || filepath.indexOf('/platforms/' + process.env.UNI_PLATFORM + '/view/components/') === 0)
}
const isAppMixins = filepath => {
......@@ -241,4 +241,4 @@ module.exports = function updateApis (apis = new Set(), userApis = new Set()) {
updateCoreComponents(coreComponentsPaths)
updateAppMixins(appMixinsPaths)
updateSystemRoutes(systemRoutesPaths)
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册