mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 22:00:34 +03:00
fix: Fix body tags update
This commit is contained in:
@@ -14,7 +14,7 @@ export default function _updateTags (options = {}) {
|
|||||||
*/
|
*/
|
||||||
return function updateTags (type, tags, headTag, bodyTag) {
|
return function updateTags (type, tags, headTag, bodyTag) {
|
||||||
const oldHeadTags = toArray(headTag.querySelectorAll(`${type}[${attribute}]`))
|
const oldHeadTags = toArray(headTag.querySelectorAll(`${type}[${attribute}]`))
|
||||||
const oldBodyTags = toArray(bodyTag.querySelectorAll(`${type}[${attribute}][body="true"]`))
|
const oldBodyTags = toArray(bodyTag.querySelectorAll(`${type}[${attribute}][data-body="true"]`))
|
||||||
const newTags = []
|
const newTags = []
|
||||||
let indexToDelete
|
let indexToDelete
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user