隐藏首页
This commit is contained in:
parent
9d73677495
commit
fa5767c12e
@ -64,19 +64,19 @@ export const constantRoutes = [
|
||||
component: () => import('@/views/error/Error'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
component: Layout,
|
||||
redirect: '/index',
|
||||
children: [
|
||||
{
|
||||
path: '/index',
|
||||
component: () => import('@/views/index'),
|
||||
name: 'Index',
|
||||
meta: { title: '首页', icon: 'index', affix: true, titleKey: 'menu.home' }
|
||||
}
|
||||
]
|
||||
},
|
||||
// {
|
||||
// path: '',
|
||||
// component: Layout,
|
||||
// redirect: '/index',
|
||||
// children: [
|
||||
// {
|
||||
// path: '/index',
|
||||
// component: () => import('@/views/index'),
|
||||
// name: 'Index',
|
||||
// meta: { title: '首页', icon: 'index', affix: true, titleKey: 'menu.home' }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
path: '/user',
|
||||
component: Layout,
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
<template>
|
||||
生产数据搜集
|
||||
</template>
|
||||
@ -169,7 +169,7 @@ function handleLogin() {
|
||||
}
|
||||
return acc
|
||||
}, {})
|
||||
router.push({ path: redirect.value || '/', query: otherQueryParams })
|
||||
router.push({ path: '/system/user', query: otherQueryParams })
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user