Home > other >  Vue released after routing garbled words match is less than
Vue released after routing garbled words match is less than

Time:09-20

Released after normal access address is no problem for http://zhangsan.lisi/index.html#/
But if direct access to http://zhangsan.lisi/will not jump to the index. The HTML interface, but there will be a straightforward data
Whether local release or publish server do

But local directly run dev is no problem, even if put behind/index html#/delete also can jump to the index. The HTML interface

Routing is also wrote * and/jump inside the

 {
Path: "*",

redirect: "/"},
{
Path: '/',
Redirect: '/index/IndexPage',
Name: 'front page',
Component: DefaultContainer,
Children: [{
Path: 'index',
Redirect: '/index/IndexPage',
Name: '
Component: {
To render (c) {
Return c (' the router - the view ')
}
},
Children: [{
Path: 'IndexPage',
Name: 'front page',
Component: IndexPage
}]
}]
},


Please ask someone to encounter such a situation??


CodePudding user response:

Login case will appear this problem, not the login will jump login screen
  • Related