add menu item

This commit is contained in:
Jay 2018-10-12 18:01:47 +08:00
parent eeb338a352
commit de76666bc4
2 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,9 @@
<sui-menu-item :active="activeItem === '' || activeItem === 'channel'">
<router-link :to="{name: 'ChannelList'}">Channels</router-link>
</sui-menu-item>
<sui-menu-item :active="activeItem !== '' && activeItem === 'linelog'" v-show="userInfo.type === 'system'">
<router-link :to="{name: 'LineLog'}">Line Log</router-link>
</sui-menu-item>
</sui-menu-menu>
<sui-menu-menu position='right'>
<sui-menu-item>User: {{userInfo.name}}</sui-menu-item>

View File

@ -34,6 +34,15 @@ export default new Router({
topMenu: 'channel'
}
},
{
path: 'linelog',
alias: '',
name: 'LineLog',
component: null,
meta: {
topMenu: 'linelog'
}
},
{
path: 'channel/:chid',
alias: '',