fix(menu.vue): 🐛 路由是否始终显示不限制只有顶级目录才有的配置,开放至菜单

This commit is contained in:
郝先瑞
2024-05-09 12:50:49 +08:00
parent 82a935c053
commit 52a1d75a37

View File

@@ -233,16 +233,18 @@
</el-form-item>
<el-form-item
v-if="formData.type === MenuTypeEnum.CATALOG"
label="根目录始终显示"
v-if="
formData.type === MenuTypeEnum.CATALOG ||
formData.type === MenuTypeEnum.MENU
"
label="是否始终显示"
>
<template #label>
<div>
根目录始终显示
是否始终显示
<el-tooltip placement="bottom" effect="light">
<template #content
>是:根目录只有一个子路由显示目录
<br />否:根目录只有一个子路由不显示目录,只显示子路由
<template #content>
当设置为始终显示时,即使只有一个子菜单也会显示
</template>
<i-ep-QuestionFilled class="inline-block" />
</el-tooltip>