From bc0f1e676a13b989b7a89b9eab32f2e6787ffdd9 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 16 Apr 2024 15:37:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E8=8F=9C=E5=8D=95=E6=98=BE=E7=A4=BA=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E6=9C=89=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1039359 --user=宋昌昌 【项目管理】用户a组织下新建项目未勾选接口测试模块-创建成功后查看项目菜单仍显示 https://www.tapd.cn/55049933/s/1498271 --- frontend/src/utils/permission.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/permission.ts b/frontend/src/utils/permission.ts index 70c95c31ad..d5fc5b7dfe 100644 --- a/frontend/src/utils/permission.ts +++ b/frontend/src/utils/permission.ts @@ -82,7 +82,7 @@ export function composePermissions(userRoleRelations: UserRoleRelation[], type: } // 判断当前一级菜单是否有权限 -export async function topLevelMenuHasPermission(route: RouteLocationNormalized | RouteRecordRaw) { +export function topLevelMenuHasPermission(route: RouteLocationNormalized | RouteRecordRaw) { const userStore = useUserStore(); const appStore = useAppStore(); const { currentMenuConfig } = appStore;