From 1be70fd8f28db51c8b14864aebf41eda43e39ba3 Mon Sep 17 00:00:00 2001 From: Pang Date: Thu, 10 Aug 2023 01:11:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E6=96=87=E4=BB=B6=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=BC=96=E8=BE=91=E6=96=87=E6=9C=AC=E6=97=B6=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=B7=B2=E4=BC=A0=E5=9B=BE=E7=89=87=E7=BC=A9=E5=88=97?= =?UTF-8?q?=E5=9B=BE=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/components/ImgUpload.vue | 11 ++++++++++- resources/assets/sass/components/img-update.scss | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/ImgUpload.vue b/resources/assets/js/components/ImgUpload.vue index 88942a0c5..9013520d3 100755 --- a/resources/assets/js/components/ImgUpload.vue +++ b/resources/assets/js/components/ImgUpload.vue @@ -50,7 +50,7 @@
{{$L('无内容')}}
-
+
{{item.title}}
@@ -366,6 +366,15 @@ } }, + browseStyle(thumb) { + if (!/https*:\/\//.test(thumb) && !/^\//.test(thumb)) { + thumb = $A.apiUrl(`../${thumb}`); + } + return { + 'background-image': `url("${thumb}")` + } + }, + __thumb(url) { if ($A.strExists(url, "?", false)) { return url + "&__thumb=true"; diff --git a/resources/assets/sass/components/img-update.scss b/resources/assets/sass/components/img-update.scss index 789f75ea4..3746c6a82 100644 --- a/resources/assets/sass/components/img-update.scss +++ b/resources/assets/sass/components/img-update.scss @@ -237,6 +237,7 @@ padding-top: 15px; color: #ffffff; background-color: rgba(0, 0, 0, 0.5); + z-index: 1; } } }