-
+
{{ title }}
@@ -10,7 +10,7 @@
diff --git a/src/layout/components/sidebar/SideMenu.vue b/src/layout/components/sidebar/SideMenu.vue
index 14bc745..d5a8386 100644
--- a/src/layout/components/sidebar/SideMenu.vue
+++ b/src/layout/components/sidebar/SideMenu.vue
@@ -16,7 +16,7 @@ import { computed, h } from 'vue'
import { usePermissionStore } from '@/store/modules/permission'
import { NIcon } from 'naive-ui'
-import { ListAlt, CircleRegular } from '@vicons/fa'
+import { IconCircle, IconMenu } from '@/components/AppIcons'
import { isExternal } from '@/utils/is'
@@ -68,10 +68,10 @@ function generateOptions(routes, basePath) {
path: resolvePath(basePath, route.path),
}
if (route.children && route.children.length) {
- curOption.icon = renderIcon(route.meta?.icon || ListAlt, { size: 16 })
+ curOption.icon = renderIcon(route.meta?.icon || IconMenu, { size: 16 })
curOption.children = generateOptions(route.children, resolvePath(basePath, route.path))
} else {
- curOption.icon = (route.meta?.icon && renderIcon(route.meta?.icon)) || renderIcon(CircleRegular, { size: 8 })
+ curOption.icon = (route.meta?.icon && renderIcon(route.meta?.icon)) || renderIcon(IconCircle, { size: 8 })
}
options.push(curOption)
}
diff --git a/src/router/routes/index.js b/src/router/routes/index.js
index be18edd..083e150 100644
--- a/src/router/routes/index.js
+++ b/src/router/routes/index.js
@@ -1,6 +1,7 @@
import Layout from '@/layout/index.vue'
import Home from '@/views/dashboard/index.vue'
-import { ChartBar, Dove, Github, HouseDamage, LastfmSquare, Link, TimesCircle } from '@vicons/fa'
+
+import { IconAlert, IconChart, IconGitee, IconGithub, IconHome, IconLink, IconVue } from '@/components/AppIcons'
export const basicRoutes = [
{
@@ -39,7 +40,7 @@ export const basicRoutes = [
redirect: '/home',
meta: {
title: 'Dashboard',
- icon: ChartBar,
+ icon: IconChart,
},
children: [
{
@@ -48,7 +49,7 @@ export const basicRoutes = [
component: Home,
meta: {
title: '首页',
- icon: HouseDamage,
+ icon: IconHome,
},
},
],
@@ -106,7 +107,7 @@ export const basicRoutes = [
redirect: '/error-page/404',
meta: {
title: '错误页',
- icon: TimesCircle,
+ icon: IconAlert,
},
children: [
{
@@ -126,7 +127,7 @@ export const basicRoutes = [
component: Layout,
meta: {
title: '外部链接',
- icon: Link,
+ icon: IconLink,
},
children: [
{
@@ -134,7 +135,7 @@ export const basicRoutes = [
path: 'https://github.com/zclzone/vue-naive-admin',
meta: {
title: '源码 - github',
- icon: Github,
+ icon: IconGithub,
},
},
{
@@ -142,7 +143,7 @@ export const basicRoutes = [
path: 'https://gitee.com/zclzone/vue-naive-admin',
meta: {
title: '源码 - gitee',
- icon: LastfmSquare,
+ icon: IconGitee,
},
},
{
@@ -150,7 +151,7 @@ export const basicRoutes = [
path: 'https://zclzone.github.io/vue-naive-admin-docs',
meta: {
title: '文档 - vuepress',
- icon: LastfmSquare,
+ icon: IconVue,
},
},
],