adjusted UI layout

This commit is contained in:
marvzhang
2020-06-18 10:50:57 +08:00
parent a20e849fc3
commit 8a54f8d168
2 changed files with 9 additions and 0 deletions

View File

@@ -180,6 +180,7 @@ export const constantRouterMap = [
title: 'Disclaimer',
icon: 'fa fa-exclamation-triangle'
},
hidden: true,
children: [
{
path: '',
@@ -199,6 +200,7 @@ export const constantRouterMap = [
title: 'ChallengeList',
icon: 'fa fa-flash'
},
hidden: true,
children: [
{
path: '',
@@ -218,6 +220,7 @@ export const constantRouterMap = [
title: 'Feedback',
icon: 'fa fa-commenting-o'
},
hidden: true,
children: [
{
path: '',

View File

@@ -30,6 +30,12 @@
<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown" class="user-dropdown">
<el-dropdown-item>
<span style="display:block;" @click="() => this.$router.push('/disclaimer')">{{$t('Disclaimer')}}</span>
</el-dropdown-item>
<el-dropdown-item>
<span style="display:block;" @click="() => this.$router.push('/feedback')">{{$t('Feedback')}}</span>
</el-dropdown-item>
<el-dropdown-item>
<span style="display:block;" @click="logout">{{$t('Logout')}}</span>
</el-dropdown-item>