icestark icon indicating copy to clipboard operation
icestark copied to clipboard

可以在主应用的子路由再加载子应用吗?

Open tjswk2008 opened this issue 11 months ago • 2 comments

子路由/actConfig/mgr中加载子应用未跳转,主应用为vue2,路由跳转了,显示空白,source里面发现子应用的js未被加载

mounted() {
    const container = document.querySelector('.iframe');
    registerMicroApps([
      {
        name: 'waiter',
        activePath: '/actConfig/mgr/waiter',
        title: '子应用',
        container,
        url: [
          'http://192.168.140.16:8080/waiter.js',
          'http://192.168.140.16:8080/style.css',
        ]
      }
    ]);
    start();
  }

image image

tjswk2008 avatar Dec 06 '24 06:12 tjswk2008

子应用间不允许嵌套

ClarkXia avatar Mar 06 '25 13:03 ClarkXia

邮件已收到~~

wisdomofgod avatar Mar 06 '25 13:03 wisdomofgod