モデレーターがコントロールパネル開いたとき、Settingsが表示されないように
This commit is contained in:
parent
72983ff9e1
commit
d20b109d61
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { defineAsyncComponent, inject, nextTick, onMounted, onUnmounted, provide, watch } from 'vue';
|
import { defineAsyncComponent, inject, nextTick, onMounted, onUnmounted, provide, watch } from 'vue';
|
||||||
|
import { $i } from '../../account';
|
||||||
import { i18n } from '@/i18n';
|
import { i18n } from '@/i18n';
|
||||||
import MkSuperMenu from '@/components/MkSuperMenu.vue';
|
import MkSuperMenu from '@/components/MkSuperMenu.vue';
|
||||||
import MkInfo from '@/components/MkInfo.vue';
|
import MkInfo from '@/components/MkInfo.vue';
|
||||||
@ -137,7 +138,7 @@ const menuDef = $computed(() => [{
|
|||||||
to: '/admin/abuses',
|
to: '/admin/abuses',
|
||||||
active: currentPage?.route.name === 'abuses',
|
active: currentPage?.route.name === 'abuses',
|
||||||
}],
|
}],
|
||||||
}, {
|
}, ...($i?.isAdmin ? [{
|
||||||
title: i18n.ts.settings,
|
title: i18n.ts.settings,
|
||||||
items: [{
|
items: [{
|
||||||
icon: 'fas fa-cog',
|
icon: 'fas fa-cog',
|
||||||
@ -185,7 +186,7 @@ const menuDef = $computed(() => [{
|
|||||||
to: '/admin/other-settings',
|
to: '/admin/other-settings',
|
||||||
active: currentPage?.route.name === 'other-settings',
|
active: currentPage?.route.name === 'other-settings',
|
||||||
}],
|
}],
|
||||||
}, {
|
}] : []), {
|
||||||
title: i18n.ts.info,
|
title: i18n.ts.info,
|
||||||
items: [{
|
items: [{
|
||||||
icon: 'fas fa-database',
|
icon: 'fas fa-database',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user