浏览代码

chore: fix font style6

zhangyuhan 4 月之前
父节点
当前提交
a058d140ab
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/fix-fn.js

+ 1 - 1
src/fix-fn.js

@@ -2,7 +2,7 @@ export function extractAndInsertSpecificFont(hostNode, fontFamily) {
     const useTopHead = () => {
         let head = null
         try {
-            head = window.__use_top__().$root.$el.parentNode.parentNode.querySelector('head')
+            head = window.__use_top__().$root.$el
         } catch (e) {
             console.warn('not find __use_top__')
         }