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

refactor: quickapp=>quickapp-vue

上级 fbc172f8
......@@ -366,10 +366,10 @@ function initAutoImportScanComponents () {
const components = getAutoComponentsByDir(componentsPath)
if (process.env.UNI_PLATFORM === 'quickapp') {
if (process.env.UNI_PLATFORM === 'quickapp-vue') {
if (!uniQuickAppAutoImportScanComponents) {
uniQuickAppAutoImportScanComponents = getAutoComponentsByDir(
path.resolve(require.resolve('@dcloudio/uni-quickapp'), '../../components'),
path.resolve(require.resolve('@dcloudio/uni-quickapp-vue'), '../../components'),
true
)
}
......
......@@ -86,7 +86,7 @@ function compileTemplate (source, options, compile) {
const compilerModule = {
preTransformNode (el, options) {
if (process.env.UNI_PLATFORM === 'quickapp') {
if (process.env.UNI_PLATFORM === 'quickapp-vue') {
// 排查所有标签
(options.isUnaryTag.autoComponents || (options.isUnaryTag.autoComponents = new Set())).add(el.tag)
} else if (isComponent(el.tag) && el.tag !== 'App') { // App.vue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册