Explorar el Código

fix: 菜单优化

wanggaokun hace 11 meses
padre
commit
d0db7a4fab
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2 2
      src/layouts/components/Menu/SubMenu.vue
  2. 1 1
      src/views/system/menu/index.vue

+ 2 - 2
src/layouts/components/Menu/SubMenu.vue

@@ -1,6 +1,6 @@
 <template>
-  <template v-for="subItem in menuList" :key="subItem.path">
-    <el-sub-menu v-if="subItem.children?.length" :index="subItem.path">
+  <template v-for="(subItem, index) in menuList" :key="subItem.path + index">
+    <el-sub-menu v-if="subItem.children?.length" :index="index + ''">
       <template #title>
         <svg-icon v-if="subItem.meta.icon" :name="subItem.meta.icon" class="menu-svg-icon" />
         <span class="sle" :title="subItem.meta.title">{{ subItem.meta.title }}</span>

+ 1 - 1
src/views/system/menu/index.vue

@@ -251,7 +251,7 @@ const setItemsOptions = () => {
       show: val => {
         return val?.menuType !== 'F'
       },
-      tooltip: '访问的路由地址,如:`user`,如外网地址需内链访问则以`http(s)://`开头',
+      tooltip: '访问的路由地址,如:`user`(none: 为空),如外网地址需内链访问则以`http(s)://`开头',
       compOptions: {
         elTagName: 'input',
         placeholder: '请输入路由地址'