Giter Site home page Giter Site logo

Comments (7)

why520crazy avatar why520crazy commented on June 16, 2024

PingCode 的登录页是跳转的形式,不是一个子应用,不过你的场景我们也有,只要在子应用和登录应用之上加一个父路由组件即可,注册应用在父路由组件,所有子应用路由的父组件设置菜单和布局,你试试吧!

from ngx-planet.

youxinxie avatar youxinxie commented on June 16, 2024

感谢大佬及时解答,我尝试着处理一下。
ngx-planet 13版本支持子应用独立运行吗?有子应用独立运行的例子吗?

from ngx-planet.

why520crazy avatar why520crazy commented on June 16, 2024

暂时没有示例,子应用独立运行比较简单,只需要设置独立的入口 main 启动应用即可,难得是如果有使用到 Portal 共享的数据,需要自己模拟或者单独加载全局数据。

from ngx-planet.

youxinxie avatar youxinxie commented on June 16, 2024

非常感谢大佬的耐心解答,按照您提供的思路,已解决问题。

from ngx-planet.

youxinxie avatar youxinxie commented on June 16, 2024

from ngx-planet.

why520crazy avatar why520crazy commented on June 16, 2024

@youxinxie 各有利弊
方案1:每个子应用独立的团队负责,独立的 CI CD 流程,分开更合理,但是带来的问题是需要采用 npm 发共享模块,也就是业务组件库(我们采用的是此方案,需要做很多基建工作)
方案2:好处是开发快速,带来的问题是在一个仓储,多个团队维护起来可能有冲突

我建议人少项目初期的话采用方案2,项目可以快速推进,如果人多了以后分团队可能自然而然的会演变为方案1

from ngx-planet.

youxinxie avatar youxinxie commented on June 16, 2024

from ngx-planet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.