|
|
@@ -75,7 +75,7 @@ export function useMenu(authCode?: string) {
|
|
|
const getAuth = (authType: AuthType) => {
|
|
|
const children = findChildren(userMenus.value, authCode)
|
|
|
return children.reduce((res, cur) => {
|
|
|
- if (cur.authType === authType) {
|
|
|
+ if (!cur.hidden && cur.authType === authType) {
|
|
|
if (!componentMap.get(cur.code) && cur.component) {
|
|
|
const componentString = cur.component.replace(/^\/+/, '') // 过滤字符串前面所有 '/' 字符
|
|
|
const componentPath = componentString.replace(/\.\w+$/, '') // 过滤后缀名,为了让 import 加入 .vue ,不然会有警告提示...
|