crc权限配置

main
wangxiaoshuang 2024-05-11 13:33:11 +08:00
parent d509c8125c
commit 7420e26c53
2 changed files with 2 additions and 2 deletions

View File

@ -284,7 +284,7 @@ export default {
this.$router.replace({ path: res[0].path });
return;
}
if (this.hasPermi(["role:pm"])) {
if (this.hasPermi(["role:pm",'role:crc'])) {
this.$router.replace({ path: "/trials/trials-inspection" });
} else if (this.hasPermi(["role:oa"])) {
this.$router.replace({ path: "/system" });

View File

@ -32,7 +32,7 @@
<!-- 工作台 -->
<!-- <span slot="title">{{ $t('trials:menuTitle:workbench') }}</span>
</el-menu-item> -->
<el-menu-item v-if="hasPermi(['role:pm'])" index="1">
<el-menu-item v-if="hasPermi(['role:pm','role:crc'])" index="1">
<i class="el-icon-odometer" />
<!-- 检查 -->
<span slot="title">{{ $t("trials:menuTitle:inspection") }}</span>