Code Monkey home page Code Monkey logo

Comments (5)

SericXu avatar SericXu commented on May 21, 2024

这种情况是不是只有通过控制主应用的菜单点击事件来处理了?

from wujie.

yiludege avatar yiludege commented on May 21, 2024

当我再次点击主应用同样的菜单时,会改变路由,后面的参数丢了。

1、这个地方有点不明白是什么意思,再次点击主应用同样的菜单指的是之前的子应用对应的菜单吗?
2、子应用是否保活、是否做生命周期适配?

from wujie.

SericXu avatar SericXu commented on May 21, 2024

上面描述的不太准确。
子应用为单例,生命周期已适配。

image

第一次点击后如图。

然后f5刷新一下。再次点击(刷新后的页面路由还是上图中的路由):
image

from wujie.

yiludege avatar yiludege commented on May 21, 2024

明白了,demo也是这个现象

这个地方没有关系的,不管是刷新还是分享 url 主应用的路由 /collect 打开都是子应用的这个页面,除了这个默认页面,子应用发生跳转其他路由一定会同步上的

这个地方的行为确实不一致,我后续看一下怎么改进哈

from wujie.

GreatAuk avatar GreatAuk commented on May 21, 2024

@yiludege 这个问题能怎么解决?如果主应用是多标签页的,这种情况就会打开两个同样的标签页(url 不一样,所以认为是不同的标签页)。

from wujie.

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.