Giter Site home page Giter Site logo

Comments (2)

lblblong avatar lblblong commented on June 7, 2024

目前没办法实现外部直接进入目标页面之前执行中间件

这种情况只能修改业务为只给一个外部入口(页面),包括分享也是从同一个入口进,要跳转的具体页面通过参数带入,然后通过 Router.navigate 跳转,这样是会执行中间件的

from tarojs-router-next.

lblblong avatar lblblong commented on June 7, 2024

也就是非通过 Router.to 或者 Router.navigate 的跳转方式都不会执行中间件
除了进入小程序的第一个页面,其他跳转都能通过 Router 的方法

from tarojs-router-next.

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.