2
0
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:
pimlie
2021-05-23 17:30:17 +02:00
parent 01e4aed340
commit 3b3d3f4397
+2 -1
View File
@@ -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
}