mirror of https://github.com/halo-dev/halo
refactor: refine permissions of extension settings page (#6237)
#### What type of PR is this? /area ui /kind improvement /milestone 2.17.x #### What this PR does / why we need it: 优化插件扩展管理页面的 UI 权限,限制只有超级管理员才能访问。 #### Does this PR introduce a user-facing change? ```release-note None ```pull/6241/head
parent
3875251d97
commit
8a61a39be3
|
@ -162,15 +162,18 @@ onMounted(() => {
|
|||
</template>
|
||||
<template #actions>
|
||||
<VSpace>
|
||||
<VButton
|
||||
size="sm"
|
||||
@click="$router.push({ name: 'PluginExtensionPointSettings' })"
|
||||
>
|
||||
<template #icon>
|
||||
<IconSettings class="h-full w-full" />
|
||||
</template>
|
||||
{{ $t("core.plugin.actions.extension-point-settings") }}
|
||||
</VButton>
|
||||
<HasPermission :permissions="['*']">
|
||||
<VButton
|
||||
size="sm"
|
||||
@click="$router.push({ name: 'PluginExtensionPointSettings' })"
|
||||
>
|
||||
<template #icon>
|
||||
<IconSettings class="h-full w-full" />
|
||||
</template>
|
||||
{{ $t("core.plugin.actions.extension-point-settings") }}
|
||||
</VButton>
|
||||
</HasPermission>
|
||||
|
||||
<VButton
|
||||
v-permission="['system:plugins:manage']"
|
||||
type="secondary"
|
||||
|
|
|
@ -38,6 +38,7 @@ export default definePlugin({
|
|||
meta: {
|
||||
title: "core.plugin.extension-settings.title",
|
||||
hideFooter: true,
|
||||
permissions: ["*"],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue