forked from mirror/misskey
fix サイドバーの設定に不具合があるとページが表示できなくなる (#6473)
* fix #6460 * Update app.vue Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
parent
aa652aac8a
commit
0d36b144cf
@ -51,7 +51,7 @@
|
|||||||
</router-link>
|
</router-link>
|
||||||
<template v-for="item in menu">
|
<template v-for="item in menu">
|
||||||
<div v-if="item === '-'" class="divider"></div>
|
<div v-if="item === '-'" class="divider"></div>
|
||||||
<component v-else-if="menuDef[item].show !== false" :is="menuDef[item].to ? 'router-link' : 'button'" class="item _button" :class="item" active-class="active" @click="() => { if (menuDef[item].action) menuDef[item].action() }" :to="menuDef[item].to">
|
<component v-else-if="menuDef[item] && (menuDef[item].show !== false)" :is="menuDef[item].to ? 'router-link' : 'button'" class="item _button" :class="item" active-class="active" @click="() => { if (menuDef[item].action) menuDef[item].action() }" :to="menuDef[item].to">
|
||||||
<fa :icon="menuDef[item].icon" fixed-width/><span class="text">{{ $t(menuDef[item].title) }}</span>
|
<fa :icon="menuDef[item].icon" fixed-width/><span class="text">{{ $t(menuDef[item].title) }}</span>
|
||||||
<i v-if="menuDef[item].indicated"><fa :icon="faCircle"/></i>
|
<i v-if="menuDef[item].indicated"><fa :icon="faCircle"/></i>
|
||||||
</component>
|
</component>
|
||||||
|
Loading…
Reference in New Issue
Block a user