From 8e221414b8f7ffae6492eed811a9a9643d73df95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Fri, 18 Nov 2022 16:59:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=9A=E7=94=A8Error=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/common.scss | 2 +- src/components/common/Error.vue | 29 +++++++++++++++++++++++++---- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/assets/css/common.scss b/src/assets/css/common.scss index aafe8010..9723dac5 100644 --- a/src/assets/css/common.scss +++ b/src/assets/css/common.scss @@ -45,7 +45,7 @@ body { } /* 请求报错样式关于popover的修改 */ -.error-hover { +.error-popover { //min-width: 30px !important; display: inline-block; background: #FFE7E6 !important; diff --git a/src/components/common/Error.vue b/src/components/common/Error.vue index 44b9d60a..48186b81 100644 --- a/src/components/common/Error.vue +++ b/src/components/common/Error.vue @@ -6,16 +6,15 @@ placement="top-start" trigger="hover" :visible-arrow="false" - class="error-popover" - popper-class="error-hover" - style="background: #1b2e3b !important;" + popper-class="error-popover" :content="content"> @@ -41,27 +40,47 @@ + + + + + +