From d82e53ee0e34091455a4217b64b7a452420fd86b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=98chen=2Ehome=E2=80=99?= <1147347984@qq.com>
Date: Sun, 14 Aug 2022 08:55:04 +0800
Subject: [PATCH] =?UTF-8?q?refactor(projects):=20=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E4=BA=86logo=E5=9B=BE=E7=89=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 10 ++--------
public/logo.svg | 2 +-
src/assets/svg/logo.svg | 2 +-
src/components/SvgIcon.vue | 10 +++++-----
src/layouts/components/sider/Logo.vue | 4 ++--
src/router/index.ts | 5 +++--
6 files changed, 14 insertions(+), 19 deletions(-)
diff --git a/README.md b/README.md
index 1a3a1a0..e419158 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,5 @@
-

-
Ench Admin
+
Ench Admin
一个基于Vue3、vite3、ts、pinia、NaiveUI,Vue-Router4的后台管理项目
@@ -49,9 +48,4 @@ Git 提交规范
pnpm cz
or
pnpm commit
-```
-
-
-## 素材来源
-
-[iconfont-阿里巴巴矢量图标库](https://www.iconfont.cn/collections/detail?spm=a313x.7781069.1998910419.d9df05512&cid=39973)
+```
\ No newline at end of file
diff --git a/public/logo.svg b/public/logo.svg
index ab038cd..9581513 100644
--- a/public/logo.svg
+++ b/public/logo.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/assets/svg/logo.svg b/src/assets/svg/logo.svg
index ab038cd..9581513 100644
--- a/src/assets/svg/logo.svg
+++ b/src/assets/svg/logo.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/components/SvgIcon.vue b/src/components/SvgIcon.vue
index 4966ad8..687257e 100644
--- a/src/components/SvgIcon.vue
+++ b/src/components/SvgIcon.vue
@@ -1,6 +1,6 @@
-
@@ -15,9 +15,9 @@ const props = defineProps({
type: String,
required: true,
},
- color: {
- type: String,
- default: '#333',
+ size: {
+ type: Number,
+ default: 18,
},
});
const symbolId = computed(() => `#${props.prefix}-${props.name}`);
diff --git a/src/layouts/components/sider/Logo.vue b/src/layouts/components/sider/Logo.vue
index 7c4ccfe..34db257 100644
--- a/src/layouts/components/sider/Logo.vue
+++ b/src/layouts/components/sider/Logo.vue
@@ -1,7 +1,7 @@
-
-
{{ appStore.title }}
+
+
{{ appStore.title }}
diff --git a/src/router/index.ts b/src/router/index.ts
index 6f8a8fe..ce6ddca 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -46,6 +46,9 @@ const routes: RouteRecordRaw[] = [
path: '/login',
name: 'login',
component: () => import('@/views/login/index.vue'), // 注意这里要带上 文件后缀.vue
+ meta: {
+ title: '登录',
+ },
},
{
path: '/no-permission',
@@ -53,7 +56,6 @@ const routes: RouteRecordRaw[] = [
component: () => import('@/views/inherit-page/not-permission/index.vue'),
meta: {
title: '无权限',
- singleLayout: 'blank',
},
},
{
@@ -62,7 +64,6 @@ const routes: RouteRecordRaw[] = [
component: () => import('@/views/inherit-page/service-error/index.vue'),
meta: {
title: '服务器错误',
- singleLayout: 'blank',
},
},
{