Home > other >  Click on the links, how to jump to specify the routing of the vue web site page?
Click on the links, how to jump to specify the routing of the vue web site page?

Time:09-26


To turn over documents for a long time also didn't find how to jump to the designated route from outer chain page, the question now is whether WeChat template messages in WeChat public entrance, each template message can be hung on a link, how to use this link to jump to the development of the vue web site under the specified page of vue was developed by using single page, has been completed, please inform,

CodePudding user response:

If you are using the Vue Router, then upon initial Vue Router has resolved the path to the current page and match the routing rules, the association rules which pages which page is displayed, and don't need you to do manually,

CodePudding user response:

Routing definition, can be directly. Yo have parameters createed parameter to monitor

CodePudding user response:

During routing redirection, write a redirect jump routing, when the path of the external links with you want to jump the path to the same can jump to the specified page in the vue,
Like my inside vue routing configuration file is such configuration
Routers: [
//this is the path, click on the links to the following redirects link phase at the same time will jump to the inside of the vue redirect page
{
Paht: '/API/member/center/wallet,
Redirect: '/recharge'
},
//this is vue packaged into index. The HTML file when the default jump page path
{
Paht: '*'
Redirect: '/'
},
]

Well, the external links above to jump to the inside of the vue a routing path is solved

CodePudding user response:

Or redirected to the target from the root path routing, don't you jump again connected to the target strength stitching on the routing path
  • Related