Git Product home page Git Product logo

Comments (3)

ClarkXia avatar ClarkXia commented on July 24, 2024

问题原因

js 中通过 registerAppEnter 方式注册子应用挂载,而目前 entry 加载后所有的内容都放入子应用的节点上面,一旦执行 registerAppEnter 中的方法,将会将当前 子应用 html 内容覆盖,包括 css 内容

解决方案

加载完 entry 后,分析其中的 css 和 js 资源,在非子应用挂载点插入对应资源,与 urls 方式加载子应用保持一致

注意事项

entry 方式加载情况下,需要注意是通过 registerAppEnter 注册子应用的话,除了css 和 js 资源外,其他 html 结构依旧会被覆盖

from icestark.

hfuuss avatar hfuuss commented on July 24, 2024

mark

from icestark.

ClarkXia avatar ClarkXia commented on July 24, 2024

@ice/[email protected] 版本已修复

from icestark.

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.