mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 16:30:34 +03:00
fix: get keyAttribute either from section or tag config
This commit is contained in:
+2
-1
@@ -174,8 +174,9 @@ export function renderTag (
|
|||||||
if (!valueAttribute) {
|
if (!valueAttribute) {
|
||||||
content = getSlotContent(context, slotName, content, data)
|
content = getSlotContent(context, slotName, content, data)
|
||||||
} else {
|
} else {
|
||||||
const { nameless, keyAttribute } = config
|
const { nameless } = config
|
||||||
if (!nameless) {
|
if (!nameless) {
|
||||||
|
const keyAttribute = getTagConfig('keyAttribute')
|
||||||
if (keyAttribute) {
|
if (keyAttribute) {
|
||||||
attributes[keyAttribute] = fullName
|
attributes[keyAttribute] = fullName
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user