|
@@ -193,8 +193,8 @@ export const subApps = {
|
|
|
|
|
|
function registerApps(apps = []) {
|
|
|
// 提供顶级 window
|
|
|
- window.__use_window__ = function (fn) {
|
|
|
- return fn(window)
|
|
|
+ window.__use_html__ = () => {
|
|
|
+ return Vue.prototype.$root.$el.parentNode.parentNode
|
|
|
}
|
|
|
store.commit('work-bench/app/register', apps)
|
|
|
store.dispatch('work-bench/app/microAppsStart')
|