提交 56e54290 authored 作者: lidongxu's avatar lidongxu

fix(commonmenu): 本地有菜单,动态获取无菜单显示列表

同上
上级 9675297c
...@@ -63,8 +63,8 @@ const menuList = computed(() => { ...@@ -63,8 +63,8 @@ const menuList = computed(() => {
// 右侧菜单 // 右侧菜单
const selectList = ref(proxy.$cache.local.getJSONArray('common_ment')) const selectList = ref(proxy.$cache.local.getJSONArray('common_ment'))
// 展示常用菜单 // 展示常用菜单
const commonMenuList = computed(() => selectList.value.map((path) => { const commonMenuList = computed(() => menuList.value.filter((o) => {
return menuList.value.find(o => o.key === path) return selectList.value.find(path => o.key === path)
})) }))
// 监听选中菜单改变 // 监听选中菜单改变
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论