There is no switchover for the routing address, but the address bar occurs because of the change in address

Source: Internet
Author: User

1, the route switch, obviously this. $route. Push ('/other ') jumps to the other page, but the address bar has changed. An inexplicable string appears

Cause: The original project uses MUI, jquery. The label for the page jump after changing to Vue is still a tag, but href= "#sqw". So inexplicable sometimes appear sqw page;

Modified to href= "javascript:void (0)", can not be clicked;

2, a page, a plurality of modules, just control display hidden, no use of Routing switch page, why the address bar or change;

Cause: Or the old reason, because the click Switch Control Hidden button is still a tag, href= "#". Cause the Address bar to change, so or modified to href= "javascript:void (0)", can not be clicked;


Summary, jump page or with v-if (v-show) control display hidden, it is best not to use a tag, but with the framework, you need to make a tag can not click;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.