菜单增加

This commit is contained in:
仲么了
2024-01-03 09:17:58 +08:00
parent cd98dc3fa3
commit 3c4f9acc84
2 changed files with 4 additions and 2 deletions

View File

@@ -8,4 +8,5 @@ export const defaultAttribute = {
columnConfig: { resizable: true }, columnConfig: { resizable: true },
rowConfig: { isCurrent: true, isHover: true }, rowConfig: { isCurrent: true, isHover: true },
scrollX: { scrollToLeftOnChange: true }, scrollX: { scrollToLeftOnChange: true },
treeConfig: {}
} }

View File

@@ -203,7 +203,7 @@ const init = async () => {
title: '权限管理', title: '权限管理',
name: 'auth', name: 'auth',
path: 'auth', path: 'auth',
icon: 'fa fa-group', icon: 'fa-solid fa-layer-group',
menu_type: null, menu_type: null,
url: '', url: '',
component: '', component: '',
@@ -257,7 +257,8 @@ const init = async () => {
}) })
} }
handlerMenu(res.data) handlerMenu(res.data)
handleAdminRoute([...arr, ...res.data]) handleAdminRoute(arr)
// handleAdminRoute([...arr, ...res.data])
// 预跳转到上次路径 // 预跳转到上次路径
if (route.params.to) { if (route.params.to) {