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__')
         }