Coder Social home page Coder Social logo

1.5.1版本路由问题 about mmrouter HOT 7 CLOSED

rubylouvre avatar rubylouvre commented on August 27, 2024
1.5.1版本路由问题

from mmrouter.

Comments (7)

gogoyqj avatar gogoyqj commented on August 27, 2024

@Realgomu 你是苹果?

这个是坑爹的ios 9 bug

from mmrouter.

gogoyqj avatar gogoyqj commented on August 27, 2024

mmHistory

            if (hash) {
                setTimeout(function() { // TODO: rm the timeout when ios9 fix its location-hash-delay bug
                    event.preventDefault()
                    avalon.router && avalon.router.navigate(hash)
                }, 60);
            }
            // if (hash) {
            //     event.preventDefault()
            //     avalon.router && avalon.router.navigate(hash)
            // }

from mmrouter.

IndexXuan avatar IndexXuan commented on August 27, 2024

不是仅仅ios9出现的话就不是这个问题,另找吧。。。

from mmrouter.

Realgomu avatar Realgomu commented on August 27, 2024

@gogoyqj 把history里的这段代码替换成你给的就正常了,谢谢!

from mmrouter.

gogoyqj avatar gogoyqj commented on August 27, 2024

@Realgomu 我反复验证之后发现,问题是处在mmHistory.js,而且是你的版本问题,请更新avalon.oniui mmrouter里面的mmHistory最新版本,这个问题就fix了,而不用像上面那么修改

from mmrouter.

RubyLouvre avatar RubyLouvre commented on August 27, 2024

gogoyqj 同步一下吧

from mmrouter.

Realgomu avatar Realgomu commented on August 27, 2024

mmHistory文件版本问题,使用oniui中的文件已正常

from mmrouter.

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.