🐛 dynamic head script should be append to qiankun head (#2181)

This commit is contained in:
Kuitos 2022-07-12 16:14:43 +08:00 committed by GitHub
parent 9f345509dc
commit 1be899052d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,9 @@ function getOverwrittenAppendChildOrInsertBefore(opts: {
return rawDOMAppendOrInsertBefore.call(this, element, refChild) as T;
}
const mountDOM = appWrapperGetter();
const appWrapper = appWrapperGetter();
const mountDOM = target === 'head' ? getAppWrapperHeadElement(appWrapper) : appWrapper;
const { fetch } = frameworkConfiguration;
const referenceNode = mountDOM.contains(refChild) ? refChild : null;