diff --git a/src/App.vue b/src/App.vue
index d9ac084..3a005d2 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -3,13 +3,22 @@
:date-locale="configProviderProps.dateLocale"
:inline-theme-disabled="configProviderProps.inlineThemeDisabled"
:locale="configProviderProps.locale"
+ :style="{
+ '--color-error': themeVars.errorColor,
+ '--color-info': themeVars.infoColor,
+ '--color-primary': themeVars.primaryColor,
+ '--color-success': themeVars.successColor,
+ '--color-warning': themeVars.warningColor,
+ }"
>
-
+
@@ -19,12 +28,17 @@
diff --git a/src/router/index.js b/src/router/index.js
index 7497a31..fc8db9c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -10,26 +10,51 @@ export const router = createRouter({
path: '/',
name: 'IndexView',
component: IndexView,
- },
- {
- path: '/about-view',
- name: 'AboutView',
- component: AboutView,
- },
- {
- path: '/nav-view',
- name: 'NavView',
- component: () => import('@/views/NavView/NavView.vue'),
+ meta: {
+ iconClass: 'mdi mdi-home-outline',
+ showInAside: true,
+ title: '主页',
+ },
},
{
path: '/search-view',
name: 'SearchView',
component: () => import('@/views/SearchView/SearchView.vue'),
+ meta: {
+ iconClass: 'mdi mdi-magnify',
+ showInAside: true,
+ title: '搜索',
+ },
+ },
+ {
+ path: '/nav-view',
+ name: 'NavView',
+ component: () => import('@/views/NavView/NavView.vue'),
+ meta: {
+ iconClass: 'mdi mdi-compass-outline',
+ showInAside: true,
+ title: '导航',
+ },
},
{
path: '/toolbox-view',
name: 'ToolboxView',
component: () => import('@/views/ToolboxView/ToolboxView.vue'),
+ meta: {
+ iconClass: 'mdi mdi-tools',
+ showInAside: true,
+ title: '工具箱',
+ },
+ },
+ {
+ path: '/about-view',
+ name: 'AboutView',
+ component: AboutView,
+ meta: {
+ iconClass: 'mdi mdi-information-outline',
+ showInAside: true,
+ title: '关于',
+ },
},
],
});