Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
tjswk2008 opened this issue Dec 6, 2024 · 0 comments
Open

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

tjswk2008 opened this issue Dec 6, 2024 · 0 comments

Comments

@tjswk2008
Copy link

tjswk2008 commented Dec 6, 2024

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant