diff --git a/dbm-ui/frontend/src/views/db-manage/common/permission/Index.vue b/dbm-ui/frontend/src/views/db-manage/common/permission/Index.vue index 308ab97ac9..ef79717bbe 100644 --- a/dbm-ui/frontend/src/views/db-manage/common/permission/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/common/permission/Index.vue @@ -187,6 +187,8 @@ const tableSearch = ref([]); const clusterAuthorizeRef = ref>(); + const isMysql = computed(() => props.accountType === AccountTypes.MYSQL || props.accountType === AccountTypes.TENDBCLUSTER); + /** * search select 过滤参数 */ @@ -386,13 +388,16 @@ onClick={(event: PointerEvent) => handleShowAuthorize(data, item, event)}> {t('授权')} - handleShowEditRule(event, data, index)}> - {t('编辑')} - + { + isMysql.value && + handleShowEditRule(event, data, index)}> + {t('编辑')} + + } )) );