fix icon error

This commit is contained in:
xiaoma
2022-11-04 10:18:51 +08:00
parent 4a47fa2f7d
commit 32116be1f2
7 changed files with 26 additions and 35 deletions

View File

@@ -1,7 +1,7 @@
import { RouteRecordRaw } from 'vue-router';
import { Layout } from '@/router/constant';
import { ProjectOutlined } from '@vicons/antd';
import { renderIcon, renderNew } from '@/utils/index';
import { renderIcon } from '@/utils/index';
const routes: Array<RouteRecordRaw> = [
{
@@ -9,7 +9,7 @@ const routes: Array<RouteRecordRaw> = [
name: 'about',
component: Layout,
meta: {
sort: 10,
sort: 9,
isRoot: true,
activeMenu: 'about_index',
icon: renderIcon(ProjectOutlined),
@@ -19,8 +19,7 @@ const routes: Array<RouteRecordRaw> = [
path: 'index',
name: `about_index`,
meta: {
title: '关于',
extra: renderNew(),
title: '关于项目',
activeMenu: 'about_index',
},
component: () => import('@/views/about/index.vue'),

View File

@@ -6,7 +6,7 @@ import { renderIcon } from '@/utils/index';
const routes: Array<RouteRecordRaw> = [
{
path: '/external',
name: 'https://jekip.github.io/docs',
name: 'https://docs.naiveadmin.com',
component: Layout,
meta: {
title: '项目文档',

View File

@@ -0,0 +1,20 @@
import { RouteRecordRaw } from 'vue-router';
import { Layout } from '@/router/constant';
import { SketchOutlined } from '@vicons/antd';
import { renderIcon, renderNew } from '@/utils/index';
const routes: Array<RouteRecordRaw> = [
{
path: '/newversion',
name: 'https://www.naiveadmin.com',
component: Layout,
meta: {
title: 'Pro 版本',
extra: renderNew(),
icon: renderIcon(SketchOutlined),
sort: 10,
},
},
];
export default routes;