From a2740987630e320803aaf5375edb63ba5a161e33 Mon Sep 17 00:00:00 2001 From: toesbieya <1647775459@qq.com> Date: Mon, 31 Aug 2020 18:02:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E9=A1=B5=E7=AD=BE=E6=A0=8F=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=94=B9=20=E5=B0=81=E8=A3=85=E7=9A=84axios?= =?UTF-8?q?=E8=87=AA=E5=B8=A6catch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/api/request.js | 2 +- vue/src/layout/component/TagsView/style.scss | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vue/src/api/request.js b/vue/src/api/request.js index e82597e..e2877fe 100644 --- a/vue/src/api/request.js +++ b/vue/src/api/request.js @@ -92,7 +92,7 @@ class Api { request(...args) { const params = this.arg ? this.arg(...args) : undefined const method = this.isGet ? 'get' : 'post' - const promise = instance[method](this.url, params) + const promise = instance[method](this.url, params).catch(e => console.error(e)) return this.chain ? this.chain(promise) : promise } } diff --git a/vue/src/layout/component/TagsView/style.scss b/vue/src/layout/component/TagsView/style.scss index 8f3f2de..f901ea5 100644 --- a/vue/src/layout/component/TagsView/style.scss +++ b/vue/src/layout/component/TagsView/style.scss @@ -1,25 +1,25 @@ @import "~@/asset/style/variables.scss"; .tags-view-container { + z-index: 8; height: $tags-view-height; - background: #f0f0f0; - border-bottom: 1px solid #d8dce5; - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 0 3px 0 rgba(0, 0, 0, .04); + background-color: #f0f2f5; + box-shadow: inset 0 0 3px 2px hsla(0, 0%, 39.2%, .1); .tags-view-wrapper { white-space: nowrap; position: relative; - box-shadow: inset 0 0 3px 2px hsla(0, 0%, 39.2%, .1); .tags-view-item { display: inline-block; position: relative; cursor: pointer; height: 32px; - line-height: 35px; + line-height: 32px; color: #909399; - background: #fff; + background-color: #ffffff; border-radius: 3px; + border: 1px solid #e8eaec; padding: 0 12px; font-size: 12px; margin: 4px;