This commit is contained in:
yangduo 2024-07-26 17:10:09 +08:00
parent 1eaf1f1d51
commit 1f6c7050d8
2 changed files with 5 additions and 2 deletions

View File

@ -26,7 +26,7 @@
<i class="el-icon-caret-bottom" /> <i class="el-icon-caret-bottom" />
</div> </div>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<router-link to="/"> <!--router-link to="/">
<el-dropdown-item> <el-dropdown-item>
{{ $t('navbar.dashboard') }} {{ $t('navbar.dashboard') }}
</el-dropdown-item> </el-dropdown-item>
@ -36,7 +36,8 @@
{{ $t('navbar.github') }} {{ $t('navbar.github') }}
</el-dropdown-item> </el-dropdown-item>
</a> </a>
<el-dropdown-item divided> <el-dropdown-item divided-->
<el-dropdown-item>
<span style="display:block;" @click="logout">{{ $t('navbar.logOut') }}</span> <span style="display:block;" @click="logout">{{ $t('navbar.logOut') }}</span>
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>

View File

@ -74,6 +74,7 @@ export const constantRoutes = [
path: '/', path: '/',
component: Layout, component: Layout,
redirect: '/dashboard', redirect: '/dashboard',
hidden: true,
children: [ children: [
{ {
path: 'dashboard', path: 'dashboard',
@ -86,6 +87,7 @@ export const constantRoutes = [
{ {
path: '/icon', path: '/icon',
component: Layout, component: Layout,
hidden: true,
children: [ children: [
{ {
path: 'index', path: 'index',