替换权限标识
This commit is contained in:
@@ -21,6 +21,7 @@ import { parseDateToStr, parseDuration } from '@/utils/date-utils';
|
||||
import { OptionsType, WS } from '@/plugins/ws-websocket';
|
||||
import saveAs from 'file-saver';
|
||||
import PQueue from 'p-queue';
|
||||
import { TENANTADMIN_ROLE_KEY } from '@/constants/admin-constants';
|
||||
import useUserStore from '@/store/modules/user';
|
||||
const { t } = useI18n();
|
||||
const { getDict } = useDictStore();
|
||||
@@ -560,7 +561,7 @@ onBeforeUnmount(() => {
|
||||
<a-button
|
||||
type="primary"
|
||||
:danger="realTimeData"
|
||||
v-roles:has="['administrator']"
|
||||
v-roles:has="[TENANTADMIN_ROLE_KEY]"
|
||||
>
|
||||
<template #icon><FundOutlined /> </template>
|
||||
{{
|
||||
|
||||
Reference in New Issue
Block a user