隐藏首页

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'), component: () => import('@/views/error/Error'),
hidden: true hidden: true
}, },
{ // {
path: '', // path: '',
component: Layout, // component: Layout,
redirect: '/index', // redirect: '/index',
children: [ // children: [
{ // {
path: '/index', // path: '/index',
component: () => import('@/views/index'), // component: () => import('@/views/index'),
name: 'Index', // name: 'Index',
meta: { title: '首页', icon: 'index', affix: true, titleKey: 'menu.home' } // meta: { title: '首页', icon: 'index', affix: true, titleKey: 'menu.home' }
} // }
] // ]
}, // },
{ {
path: '/user', path: '/user',
component: Layout, component: Layout,

View File

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

View File

@ -169,7 +169,7 @@ function handleLogin() {
} }
return acc return acc
}, {}) }, {})
router.push({ path: redirect.value || '/', query: otherQueryParams }) router.push({ path: '/system/user', query: otherQueryParams })
}) })
.catch((error) => { .catch((error) => {
console.error(error) console.error(error)