Skip to content

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

@tjswk2008

Description

@tjswk2008

子路由/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions