mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-03-01 00:23:11 +08:00
fix icon error
This commit is contained in:
@@ -1,22 +0,0 @@
|
|||||||
/**
|
|
||||||
* Introduces component library styles on demand.
|
|
||||||
* https://github.com/anncwb/vite-plugin-style-import
|
|
||||||
*/
|
|
||||||
|
|
||||||
import styleImport from 'vite-plugin-style-import';
|
|
||||||
|
|
||||||
export function configStyleImportPlugin(isBuild: boolean) {
|
|
||||||
if (!isBuild) return [];
|
|
||||||
const styleImportPlugin = styleImport({
|
|
||||||
libs: [
|
|
||||||
{
|
|
||||||
libraryName: 'ant-design-vue',
|
|
||||||
esModule: true,
|
|
||||||
resolveStyle: (name) => {
|
|
||||||
return `ant-design-vue/es/${name}/style/index`;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
});
|
|
||||||
return styleImportPlugin;
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { RouteRecordRaw } from 'vue-router';
|
import { RouteRecordRaw } from 'vue-router';
|
||||||
import { Layout } from '@/router/constant';
|
import { Layout } from '@/router/constant';
|
||||||
import { ProjectOutlined } from '@vicons/antd';
|
import { ProjectOutlined } from '@vicons/antd';
|
||||||
import { renderIcon, renderNew } from '@/utils/index';
|
import { renderIcon } from '@/utils/index';
|
||||||
|
|
||||||
const routes: Array<RouteRecordRaw> = [
|
const routes: Array<RouteRecordRaw> = [
|
||||||
{
|
{
|
||||||
@@ -9,7 +9,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
name: 'about',
|
name: 'about',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
meta: {
|
meta: {
|
||||||
sort: 10,
|
sort: 9,
|
||||||
isRoot: true,
|
isRoot: true,
|
||||||
activeMenu: 'about_index',
|
activeMenu: 'about_index',
|
||||||
icon: renderIcon(ProjectOutlined),
|
icon: renderIcon(ProjectOutlined),
|
||||||
@@ -19,8 +19,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
path: 'index',
|
path: 'index',
|
||||||
name: `about_index`,
|
name: `about_index`,
|
||||||
meta: {
|
meta: {
|
||||||
title: '关于',
|
title: '关于项目',
|
||||||
extra: renderNew(),
|
|
||||||
activeMenu: 'about_index',
|
activeMenu: 'about_index',
|
||||||
},
|
},
|
||||||
component: () => import('@/views/about/index.vue'),
|
component: () => import('@/views/about/index.vue'),
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { renderIcon } from '@/utils/index';
|
|||||||
const routes: Array<RouteRecordRaw> = [
|
const routes: Array<RouteRecordRaw> = [
|
||||||
{
|
{
|
||||||
path: '/external',
|
path: '/external',
|
||||||
name: 'https://jekip.github.io/docs',
|
name: 'https://docs.naiveadmin.com',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
meta: {
|
meta: {
|
||||||
title: '项目文档',
|
title: '项目文档',
|
||||||
|
|||||||
20
src/router/modules/newVersion.ts
Normal file
20
src/router/modules/newVersion.ts
Normal 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;
|
||||||
@@ -22,16 +22,12 @@
|
|||||||
</n-descriptions-item>
|
</n-descriptions-item>
|
||||||
<n-descriptions-item label="文档地址">
|
<n-descriptions-item label="文档地址">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<a href="https://jekip.github.io/docs" class="py-2" target="_blank"
|
<a href="https://docs.naiveadmin.com" class="py-2" target="_blank">查看文档地址</a>
|
||||||
>查看文档地址</a
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</n-descriptions-item>
|
</n-descriptions-item>
|
||||||
<n-descriptions-item label="预览地址">
|
<n-descriptions-item label="预览地址">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<a href="https://naive-ui-admin.vercel.app" class="py-2" target="_blank"
|
<a href="https://v1.naiveadmin.com" class="py-2" target="_blank">查看预览地址</a>
|
||||||
>查看预览地址</a
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</n-descriptions-item>
|
</n-descriptions-item>
|
||||||
<n-descriptions-item label="Github">
|
<n-descriptions-item label="Github">
|
||||||
|
|||||||
@@ -243,7 +243,6 @@
|
|||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
label: '删除',
|
label: '删除',
|
||||||
icon: 'ic:outline-delete-outline',
|
|
||||||
onClick: handleDelete.bind(null, record),
|
onClick: handleDelete.bind(null, record),
|
||||||
// 根据业务控制是否显示 isShow 和 auth 是并且关系
|
// 根据业务控制是否显示 isShow 和 auth 是并且关系
|
||||||
ifShow: () => {
|
ifShow: () => {
|
||||||
|
|||||||
@@ -120,7 +120,6 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '删除',
|
label: '删除',
|
||||||
icon: 'ic:outline-delete-outline',
|
|
||||||
onClick: handleDelete.bind(null, record),
|
onClick: handleDelete.bind(null, record),
|
||||||
// 根据业务控制是否显示 isShow 和 auth 是并且关系
|
// 根据业务控制是否显示 isShow 和 auth 是并且关系
|
||||||
ifShow: () => {
|
ifShow: () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user