mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-24 01:50:34 +03:00
fix: get keyAttribute _either_ from section or tag config
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ export function renderTag (
|
|||||||
} else {
|
} else {
|
||||||
const { nameless } = config
|
const { nameless } = config
|
||||||
if (!nameless) {
|
if (!nameless) {
|
||||||
const keyAttribute = getTagConfig('keyAttribute')
|
const keyAttribute = config.keyAttribute || getTagConfig('keyAttribute')
|
||||||
if (keyAttribute) {
|
if (keyAttribute) {
|
||||||
attributes[keyAttribute] = fullName
|
attributes[keyAttribute] = fullName
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user