隐藏首页

This commit is contained in:
17630416519 2026-01-10 15:14:20 +08:00
parent 9d73677495
commit fa5767c12e
3 changed files with 14 additions and 17 deletions

View File

@ -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,

View File

@ -1,3 +0,0 @@
<template>
生产数据搜集
</template>

View File

@ -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)