From 7640fe085bad4e5eb80c7fb008dadf1a9759cb3b Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 25 Mar 2022 14:17:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/allProject.js | 2 +- project/build.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project/allProject.js b/project/allProject.js index d5810d91..747f297d 100644 --- a/project/allProject.js +++ b/project/allProject.js @@ -124,7 +124,7 @@ const generateMain = project => { const install = function (Vue) { if (install.installed) return Promise.resolve() else{ - let contexts = require.context('.', true, /(\\/.+)[\\\/]App[^\\\/]+\\.vue$/) + let contexts = require.context('.', true, /(\\/.+)[\\\/]${project=='dvui'?'Ai':'App'}[^\\\/]+\\.vue$/) if (contexts) { contexts.keys().map(e => { if (contexts(e).default) { diff --git a/project/build.js b/project/build.js index 7670dfe5..06f862ce 100644 --- a/project/build.js +++ b/project/build.js @@ -124,7 +124,7 @@ const start = () => { const install = function (Vue) { if (install.installed) return Promise.resolve() else{ - let contexts = require.context('.', true, /(\\/.+)\\/App[^\\/]+\\.vue$/) + let contexts = require.context('.', true, /(\\/.+)\\/${prj == 'dvui' ? 'Ai' : 'App'}[^\\/]+\\.vue$/) if (contexts) { contexts.keys().map(e => { if (contexts(e).default) {