替换权限标识

This commit is contained in:
lai
2024-07-22 19:11:32 +08:00
parent 636c7a5939
commit d9b2b6b567
6 changed files with 761 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ import useMaskStore from '@/store/modules/mask';
import { hasPermissions } from '@/plugins/auth-user';
import { dbClear } from '@/utils/cache-db-utils';
import { CACHE_DB_TABLE_DND } from '@/constants/cache-keys-constants';
import { TENANTADMIN_ROLE_KEY } from '@/constants/admin-constants';
import { ref } from 'vue';
const { isFullscreen, toggle } = useFullscreen();
@@ -85,7 +86,7 @@ function fnChangeLocale(e: any) {
type="text"
style="color: inherit"
@click="fnClickAlarm"
v-roles:has="['administrator']"
v-roles:has="['TENANTADMIN_ROLE_KEY']"
>
<template #icon>
<a-badge
@@ -141,7 +142,7 @@ function fnChangeLocale(e: any) {
type="text"
style="color: inherit"
@click="fnClickHelpDoc()"
v-roles:has="['administrator']"
v-roles:has="['TENANTADMIN_ROLE_KEY']"
>
<template #icon>
<QuestionCircleOutlined />