diff --git a/packages/uni-cli-shared/src/mp/usingComponents.ts b/packages/uni-cli-shared/src/mp/usingComponents.ts index 940fb8241ec..97636fbe1b5 100644 --- a/packages/uni-cli-shared/src/mp/usingComponents.ts +++ b/packages/uni-cli-shared/src/mp/usingComponents.ts @@ -266,6 +266,7 @@ function parseVueComponentName(filename: string) { if (!defineComponentDeclaration) return name + // 尝试从组件定义对象中获取组件名 for (const prop of defineComponentDeclaration.properties) { if ( isObjectProperty(prop) &&