Add 404 redirect
This commit is contained in:
parent
41a31fdd91
commit
6023d85032
1 changed files with 4 additions and 0 deletions
|
@ -22,5 +22,9 @@ export default new Router({
|
|||
path: '*.html',
|
||||
redirect: to => to.params.pathMatch,
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
redirect: '/',
|
||||
},
|
||||
],
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue