fix(嵌入式): 嵌入式样式问题

This commit is contained in:
dataeaseShu
2025-08-08 16:15:50 +08:00
committed by dataeaseShu
parent fc6ba2e847
commit 3b5420dbc2

View File

@@ -48,6 +48,7 @@ const getPrefix = (): string => {
return prefix
}
const element = document.createElement('head')
document.body.appendChild(element)
document.querySelector('head').appendChild = <T extends Node>(node: T) => {
const newNode = formatterUrl(node, getPrefix())
element.appendChild(newNode)