From c47928748c3c27f5947696e8dbb36a4905008064 Mon Sep 17 00:00:00 2001 From: jmal Date: Thu, 24 Dec 2020 23:54:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E6=8F=90=E5=8F=96?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=BE=93=E5=85=A5=E6=A1=86=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/input/JInput.vue | 31 ---------------- src/components/input/UploadImageInput.vue | 42 ++++++++++++++++++++++ src/styles/setting.scss | 1 + src/views/setting/articles/blogManager.vue | 18 +++++----- 4 files changed, 51 insertions(+), 41 deletions(-) delete mode 100644 src/components/input/JInput.vue create mode 100644 src/components/input/UploadImageInput.vue diff --git a/src/components/input/JInput.vue b/src/components/input/JInput.vue deleted file mode 100644 index 879741c..0000000 --- a/src/components/input/JInput.vue +++ /dev/null @@ -1,31 +0,0 @@ - - diff --git a/src/components/input/UploadImageInput.vue b/src/components/input/UploadImageInput.vue new file mode 100644 index 0000000..8f028a4 --- /dev/null +++ b/src/components/input/UploadImageInput.vue @@ -0,0 +1,42 @@ + + diff --git a/src/styles/setting.scss b/src/styles/setting.scss index 274ce3a..61b938c 100644 --- a/src/styles/setting.scss +++ b/src/styles/setting.scss @@ -55,6 +55,7 @@ a:hover { } .config-itme-label { padding-top: 15px; + padding-bottom: 5px; font-size: 14px; font-weight: 500; } diff --git a/src/views/setting/articles/blogManager.vue b/src/views/setting/articles/blogManager.vue index 82da4ee..b206496 100644 --- a/src/views/setting/articles/blogManager.vue +++ b/src/views/setting/articles/blogManager.vue @@ -11,13 +11,11 @@ -
站点背景大图:
- - -
- -
-
+
站点背景大图: +
+ 在这里填入图片的URL地址, 以在网站首页显示一个背景大图。
首页大图内文字:
@@ -103,12 +101,12 @@ import '../../../assets/fontawesome-free-5.11.2-web/css/all.min.css' import {getSetting, updateSetting} from '@/api/setting-api' -import JInput from "@/components/input/JInput"; +import UploadImageInput from "@/components/input/UploadImageInput"; export default { name: 'blogManager', components: { - JInput, + UploadImageInput }, data() { return { @@ -136,7 +134,7 @@ export default { this.$nextTick(() => { const that = this setTimeout(function (){ - that.activeNames = ['2'] + that.activeNames = ['1'] },50) }) },