Skip to content

Commit 60bcea4

Browse files
committed
chore: update
1 parent c4e5b8b commit 60bcea4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/uni-cli-shared/src/mp/usingComponents.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ function parseVueComponentName(filename: string) {
266266

267267
if (!defineComponentDeclaration) return name
268268

269+
// 尝试从组件定义对象中获取组件名
269270
for (const prop of defineComponentDeclaration.properties) {
270271
if (
271272
isObjectProperty(prop) &&

0 commit comments

Comments
 (0)