update 优化 增加首页菜单icon图标

This commit is contained in:
疯狂的狮子Li 2026-06-26 11:59:06 +08:00
parent 6c7ec5d3f1
commit 516efedfa0

View File

@ -27,7 +27,7 @@ import { useTagsViewStore } from '@/stores/tagsViewStore';
import { useUserStore } from '@/stores/userStore';
import { getToken, removeToken } from '@/utils/auth';
import { appEnv } from '@/utils/env';
import { appendRouteQuery, flattenBackendRoutes } from '@/utils/menu';
import { appendRouteQuery, flattenBackendRoutes, routeIcon } from '@/utils/menu';
import { closePush, initMessageBox, initPush } from '@/utils/push';
import { isHttp } from '@/utils/ruoyi';
@ -433,7 +433,7 @@ export default function BasicLayout() {
menuHeaderRender={menuHeaderRender}
headerTitleRender={headerTitleRender}
location={{ pathname: location.pathname }}
route={{ path: '/', routes: [{ path: '/index', name: '首页' }, ...menuData] }}
route={{ path: '/', routes: [{ path: '/index', name: '首页', icon: routeIcon('dashboard') }, ...menuData] }}
menuItemRender={(item, _dom) => (
<button
type="button"