From 1ff7f5dec5bf297a1489d97e7b6057bf9f1cff3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=8C=E7=B3=96=E5=8C=85=E5=AD=90?= Date: Sun, 15 Jan 2023 13:50:58 +0800 Subject: [PATCH] =?UTF-8?q?element-plus=20=E7=89=88=E6=9C=AC=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/menu.ts | 6 +-- src/static/common.less | 4 +- src/views/Home.vue | 8 +-- src/views/api/Hitokoto.vue | 16 +++--- src/views/api/Music.vue | 87 +++++++++++++++++-------------- src/views/api/PhotoWall.vue | 26 ++++----- src/views/api/SourceImage.vue | 10 ++-- src/views/system/Article.vue | 49 +++++++++-------- src/views/system/SystemConfig.vue | 12 ++--- src/views/system/SystemRole.vue | 18 +++---- src/views/system/SystemUser.vue | 12 ++--- src/views/tool/SqlReplace.vue | 2 +- 12 files changed, 132 insertions(+), 118 deletions(-) diff --git a/src/config/menu.ts b/src/config/menu.ts index 8e70a86..de8cc18 100644 --- a/src/config/menu.ts +++ b/src/config/menu.ts @@ -2,7 +2,7 @@ export default [ { name: 'system', title: '系统管理', - icon: 'el-icon-s-operation', + icon: 'Operation', child: [ { title: '系统配置', path: '/system/config' }, { title: '用户管理', path: '/system/user' }, @@ -13,7 +13,7 @@ export default [ },{ name: 'api', title: 'API数据', - icon: 'el-icon-s-data', + icon: 'Histogram', child: [ { title: '一言', path: '/api/hitokoto' }, { title: '照片墙', path: '/api/photoWall' }, @@ -23,7 +23,7 @@ export default [ },{ name: 'tool', title: '工具', - icon: 'el-icon-s-tools', + icon: 'Tools', child: [ { title: 'SQL占位符替换', path: '/tool/sqlReplace' } ] diff --git a/src/static/common.less b/src/static/common.less index b958aa5..235665a 100644 --- a/src/static/common.less +++ b/src/static/common.less @@ -7,6 +7,7 @@ html,body,#app,.layout { .layout-header{ color: #fff; background-color: #515a6e; + position: relative; div.main-title { display: inline-block; font-size: 22px; @@ -16,7 +17,8 @@ html,body,#app,.layout { display: inline-block; position: absolute; right: 20px; - top: 9px; + top: 50%; + transform: translateY(-50%); } } .layout-main { diff --git a/src/views/Home.vue b/src/views/Home.vue index 5d31f76..1c43968 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -4,10 +4,10 @@
博客API管理后台