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

View File

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