mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-11-05 08:57:12 +08:00
fix: 修复侧边栏菜单无法显示自定义图标的问题
自定义图标请将图标 svg 文件添加到 src/assets/icons/svg 目录下
This commit is contained in:
@@ -95,7 +95,10 @@
|
||||
_route.forEach((element) => {
|
||||
// This is demo, modify nodes as needed
|
||||
const icon = element?.meta?.icon
|
||||
? () => h(compile(`<icon-${element?.meta?.icon}/>`))
|
||||
? () =>
|
||||
h(
|
||||
compile(`<svg-icon icon-class="${element?.meta?.icon}"/>`)
|
||||
)
|
||||
: null;
|
||||
const node =
|
||||
element?.children && element?.children.length !== 0 ? (
|
||||
|
||||
Reference in New Issue
Block a user