fix: 多语言切换显示按钮权限标识判断

This commit is contained in:
TsMask
2024-02-04 20:10:38 +08:00
parent 9c8174ef6a
commit f71d4b0c99

View File

@@ -8,6 +8,7 @@ import useAppStore from '@/store/modules/app';
import useUserStore from '@/store/modules/user';
import useAlarmStore from '@/store/modules/alarm';
import useLockedStore from '@/store/modules/locked';
import { hasPermissions } from '@/plugins/auth-user';
const { isFullscreen, toggle } = useFullscreen();
const { t, changeLocale, optionsLocale } = useI18n();
const lockedStore = useLockedStore();
@@ -107,8 +108,7 @@ function fnChangeLocale(e: any) {
<a-dropdown
placement="bottom"
:trigger="['click', 'hover']"
v-perms:has="['system:setting:i18n']"
v-if="appStore.i18nOpen"
v-if="appStore.i18nOpen && hasPermissions(['system:setting:i18n'])"
>
<a-button size="small" type="default">
{{ t('i18n') }}