From 136bd4e91fafc6269d54c7a176e7d3f1ed3469b9 Mon Sep 17 00:00:00 2001 From: Li Date: Mon, 15 May 2023 14:43:55 +0800 Subject: [PATCH] fix: theme page displays error without management permissions. (#3938) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### 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 修复没有主题管理权限时,进入主题功能页面报错的问题。 ``` --- console/src/modules/interface/themes/layouts/ThemeLayout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/src/modules/interface/themes/layouts/ThemeLayout.vue b/console/src/modules/interface/themes/layouts/ThemeLayout.vue index 63bd3f238..3f4a702e3 100644 --- a/console/src/modules/interface/themes/layouts/ThemeLayout.vue +++ b/console/src/modules/interface/themes/layouts/ThemeLayout.vue @@ -172,7 +172,7 @@ watch([() => route.name, () => route.params], async () => {