Browse Source

【STORE】404页面跳转问题处理

faster_AG_grid
安虹睿 1 year ago
parent
commit
5ae634057a
  1. 15
      PC/UI.WinIn.FasterZ.Store/src/router/index.js

15
PC/UI.WinIn.FasterZ.Store/src/router/index.js

@ -45,6 +45,11 @@ export let constantRoutes = [
component: () => import('@/views/redirect/index') component: () => import('@/views/redirect/index')
}] }]
}, },
{
path: '*',
redirect: '/404',
hidden: true
},
{ {
path: '/login', path: '/login',
component: () => import('@/views/login/index'), component: () => import('@/views/login/index'),
@ -145,11 +150,11 @@ export let constantRoutes = [
export let asyncRoutes = [ export let asyncRoutes = [
/** when your routing map is too long, you can split it into small modules **/ /** when your routing map is too long, you can split it into small modules **/
// 404 page must be placed at the end !!! // 404 page must be placed at the end !!!
{ // {
path: '*', // path: '*',
redirect: '/404', // redirect: '/404',
hidden: true // hidden: true
} // }
] ]
const createRouter = () => new Router({ const createRouter = () => new Router({

Loading…
Cancel
Save