🐛 dynamic head script should be append to qiankun head (#2181)
This commit is contained in:
parent
9f345509dc
commit
1be899052d
|
|
@ -245,7 +245,9 @@ function getOverwrittenAppendChildOrInsertBefore(opts: {
|
||||||
return rawDOMAppendOrInsertBefore.call(this, element, refChild) as T;
|
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 { fetch } = frameworkConfiguration;
|
||||||
const referenceNode = mountDOM.contains(refChild) ? refChild : null;
|
const referenceNode = mountDOM.contains(refChild) ? refChild : null;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user