替换权限标识
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user