2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-23 17:40:33 +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) { 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
} }