|
|
|
@ -32,7 +32,7 @@ |
|
|
|
<el-icon style="bottom: -3px"><SwitchButton /></el-icon> |
|
|
|
退出登录 |
|
|
|
</div> |
|
|
|
<div class="sidebar-set" @click="handleSet" v-if="permission != '1'"> |
|
|
|
<div class="sidebar-set" @click="handleSet" v-if="permission == '2'"> |
|
|
|
<el-icon style="bottom: -3px"><Setting /></el-icon> |
|
|
|
设置 |
|
|
|
</div> |
|
|
|
@ -115,14 +115,7 @@ const filteredSidebarRoutes = computed(() => { |
|
|
|
// 必须标记为显示侧边栏 |
|
|
|
if (childRoute.meta?.showSidebar !== true) return false; |
|
|
|
|
|
|
|
if (permission.value == "1") { |
|
|
|
// 权限为1只可以看到查看被邀请用户 |
|
|
|
return childRoute.name === "invitedLook"; |
|
|
|
} else { |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
// 权限判断 |
|
|
|
if (permission.value == "2") { |
|
|
|
// 权限为2可以看到全部 |
|
|
|
@ -131,7 +124,7 @@ const filteredSidebarRoutes = computed(() => { |
|
|
|
// 权限为1只可以看到查看被邀请用户 |
|
|
|
return childRoute.name === "invitedLook"; |
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
// 默认情况(如未登录或无权限字段),根据实际需求处理,这里暂时隐藏 |
|
|
|
return false; |
|
|
|
|