mirror of https://github.com/halo-dev/halo
fix: theme page displays error without management permissions. (#3938)
#### What type of PR is this? /kind bug /area console /milestone 2.6.x #### What this PR does / why we need it: #### Which issue(s) this PR fixes: Fixes #3933 #### Special notes for your reviewer: 1. 创建一个拥有主题查看而没有主题管理权限的角色,并为某个用户分配这个角色。 2. 使用该用户登录 console,点击主题选项卡查看控制台是否报错。 #### Does this PR introduce a user-facing change? ```release-note 修复没有主题管理权限时,进入主题功能页面报错的问题。 ```pull/3954/head
parent
90723f5382
commit
136bd4e91f
|
@ -172,7 +172,7 @@ watch([() => route.name, () => route.params], async () => {
|
|||
<template #actions>
|
||||
<VSpace>
|
||||
<VButton
|
||||
v-if="!isActivated"
|
||||
v-show="!isActivated"
|
||||
v-permission="['system:themes:manage']"
|
||||
size="sm"
|
||||
type="primary"
|
||||
|
|
Loading…
Reference in New Issue