From 8edddb8cda94304bce6af44a3e78e7b627598fe5 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 2 Sep 2022 15:36:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=8B=E5=8A=A8=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=BA=93=E4=BF=A1=E6=81=AF=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/appsSync.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/appsSync.js b/bin/appsSync.js index 9e7dd196..9ab5d455 100644 --- a/bin/appsSync.js +++ b/bin/appsSync.js @@ -9,7 +9,7 @@ const saveApps = app => { } else return Promise.reject("没有应用") } const getAppInfo = (file, apps) => { - if (/[\\\/](App[^\\\/]+)\.vue$/g.test(file)) { + if (/[\\\/](App[A-Z][^\\\/]+)\.vue$/g.test(file)) { const name = file.replace(/.+[\\\/](App[^\\\/]+)\.vue$/, '$1'), source = fs.readFileSync(file).toString(), parsed = compiler.parseComponent(source), @@ -18,7 +18,7 @@ const getAppInfo = (file, apps) => { apps.push({ id: file.replace(/\.vue$/, '').replace(/[\\\/]/g, '_'), label: label || name, - libPath: file.replace(/\.vue$/, ''), + libPath: `/${file.replace(/\.vue$/, '').replace(/[\\\/]/g, '/')}`, name, type: 'web' })