提交 ffd13efa 编写于 作者: Q qiang

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

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