From 45f7b8a575ee01ce4faa7cd661bc02f3d09d1f54 Mon Sep 17 00:00:00 2001 From: jixinbao Date: Fri, 7 Jun 2024 15:16:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(cli-shared):=20=E6=AD=A3=E7=A1=AE=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E5=BD=93=E5=89=8D=E6=96=87=E4=BB=B6=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E4=B8=BA=20AppVue=EF=BC=8C=E5=85=BC=E5=AE=B9=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=90=8E=E7=BC=80=E5=8C=85=E5=90=AB=20App.vue=20=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ask 192513 --- packages/uni-cli-shared/src/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/uni-cli-shared/src/utils.ts b/packages/uni-cli-shared/src/utils.ts index 17eae4dba5..e4bf50e448 100644 --- a/packages/uni-cli-shared/src/utils.ts +++ b/packages/uni-cli-shared/src/utils.ts @@ -182,7 +182,8 @@ Please run \`${colors.cyan( } export function isAppVue(filename: string) { - return filename.endsWith('App.vue') || filename.endsWith('App.uvue') + const appVue = resolveAppVue(process.env.UNI_INPUT_DIR) + return appVue === normalizePath(filename) } export function resolveAppVue(inputDir: string) { -- GitLab