Skip to content

Commit 56ebb00

Browse files
committed
fix global component name
1 parent be9264f commit 56ebb00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/global-api/assets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function initAssetRegisters (Vue: GlobalAPI) {
2525
}
2626
}
2727
if (type === 'component' && isPlainObject(definition)) {
28-
definition.name = id
28+
definition.name = definition.name || id
2929
definition = Vue.extend(definition)
3030
}
3131
this.options[type + 's'][id] = definition

0 commit comments

Comments
 (0)