Coder Social home page Coder Social logo

Comments (5)

phodal avatar phodal commented on May 19, 2024
  1. 样式重复插件这个问题,依赖于你们是否有统一的样式?如果有统一的样式,建议在主工程中加入就可以了。
  2. 如果要做样式隔离,可以采用 iframe 模式。如果是非 iframe 模式,得从规范解决问题,如每个子应用添加对应的前缀。

from mooa.

gaoupon avatar gaoupon commented on May 19, 2024

好的,关于样式隔离,可能现阶段只能通过 iframe 的方式了。

关于标签重复插入的问题,可能是我没有描述清楚:
image
如上图所示是 mooa.phodal.com 这个示例网站的头部里内容,每次进入统一应用都会重新把 script 和 style
插入一遍,造成很多重复的标签。

from mooa.

phodal avatar phodal commented on May 19, 2024

@gaoupon 重新检测了一下,发现是删除逻辑有问题。

from mooa.

phodal avatar phodal commented on May 19, 2024

@gaoupon 我这边修复了这个问题,你可以再试试

from mooa.

gaoupon avatar gaoupon commented on May 19, 2024

👍我这边没问题了

from mooa.

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.