umijs / plugins

🍣 The one-stop shop for official Umi plugins and presets.
349 stars 238 forks source link

qiankun 怎么让已有项目做主应用,子应用跑在antd的layout容器里? #794

Closed ystyle closed 2 years ago

ystyle commented 2 years ago

qiankun 怎么让已有项目做主应用,子应用跑在antd的layout容器里? ———————————————————————————————

我按教程已经 抢建起了微前端架子,但子起用点开后会把整个 页面替换为子应用。 怎么让子应用跑在antd layout容器里?

ystyle commented 2 years ago

发现原因了, umirc里配置的qiankun里一定要有

{
  "qiankun": {
    "master": {
      "apps": []
    }
  }
}