Giter Club home page Giter Club logo

Comments (5)

hangaoke1 avatar hangaoke1 commented on June 26, 2024

https://github.com/wefront/feb-alive/blob/master/src/components/feb-alive.js#L115
上层组件复用情况

/a/b/c => /a/b/d // 复用a、b组件

/a/b/c => /a/e // 复用a组件

所以以下情况不会复用组件,a、b

/a/b => /a/b/c

临时解决方案,增加一个空的匹配组件home

/a/b/home => /a/b/c

from feb-alive.

smalt762581 avatar smalt762581 commented on June 26, 2024

对于 /a/b => /a/b/c 不复用a、b是没有疑问的

疑惑的点在于回退的时候 却没有复用

父路由只有一层的时候:

a => a/b  走到else 此时不会复用a

但是a/b 回退到 a  满足if 此时a是复用的

父路由有两层的时候:

a/b => a/b/c 走到else 不复用a、b

但是从a/b/c 回退到 回到a/b 满足if  但是 a、b也没有复用

from feb-alive.

hangaoke1 avatar hangaoke1 commented on June 26, 2024

确实有这个问题,这边修复一下

from feb-alive.

hangaoke1 avatar hangaoke1 commented on June 26, 2024

路由复用说明

嵌套路由跳多层嵌套路由:

/a/b => /a/b/c

a复用/b复用/c创建

多层嵌套路由跳嵌套路由:

/a/b/c => /a/b

a复用/b创建

多层嵌套路由同末级跳转:

/a/b/c => /a/b/c?t=xxxx

a复用/b复用/c创建

嵌套路由同末级跳转:

/a/b => /a/b?t=xxxx

a复用/b创建

from feb-alive.

hangaoke1 avatar hangaoke1 commented on June 26, 2024

Fixed in 2.1.0

from feb-alive.

Related Issues (13)

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.