mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-08 20:42:26 +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) {
|
||||
content = getSlotContent(context, slotName, content, data)
|
||||
} else {
|
||||
const { nameless, keyAttribute } = config
|
||||
const { nameless } = config
|
||||
if (!nameless) {
|
||||
const keyAttribute = getTagConfig('keyAttribute')
|
||||
if (keyAttribute) {
|
||||
attributes[keyAttribute] = fullName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user