mirror of
https://gitee.com/JavaLionLi/plus-ui.git
synced 2026-09-16 00:38:19 +08:00
update 优化 增加首页菜单icon图标
This commit is contained in:
parent
6c7ec5d3f1
commit
516efedfa0
@ -27,7 +27,7 @@ import { useTagsViewStore } from '@/stores/tagsViewStore';
|
|||||||
import { useUserStore } from '@/stores/userStore';
|
import { useUserStore } from '@/stores/userStore';
|
||||||
import { getToken, removeToken } from '@/utils/auth';
|
import { getToken, removeToken } from '@/utils/auth';
|
||||||
import { appEnv } from '@/utils/env';
|
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 { closePush, initMessageBox, initPush } from '@/utils/push';
|
||||||
import { isHttp } from '@/utils/ruoyi';
|
import { isHttp } from '@/utils/ruoyi';
|
||||||
|
|
||||||
@ -433,7 +433,7 @@ export default function BasicLayout() {
|
|||||||
menuHeaderRender={menuHeaderRender}
|
menuHeaderRender={menuHeaderRender}
|
||||||
headerTitleRender={headerTitleRender}
|
headerTitleRender={headerTitleRender}
|
||||||
location={{ pathname: location.pathname }}
|
location={{ pathname: location.pathname }}
|
||||||
route={{ path: '/', routes: [{ path: '/index', name: '首页' }, ...menuData] }}
|
route={{ path: '/', routes: [{ path: '/index', name: '首页', icon: routeIcon('dashboard') }, ...menuData] }}
|
||||||
menuItemRender={(item, _dom) => (
|
menuItemRender={(item, _dom) => (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user