From b0c5829e506a626a712a3f1c162c8e138f27d4ed Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Thu, 11 Jan 2024 11:48:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/image/image-path.uvue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pages/component/image/image-path.uvue b/pages/component/image/image-path.uvue index c85a9d08..0fc22913 100644 --- a/pages/component/image/image-path.uvue +++ b/pages/component/image/image-path.uvue @@ -8,13 +8,14 @@ {{item.description}} - + 非static目录的src静态路径:./logo.png - + @@ -93,14 +94,10 @@ } }, methods: { - imageErrorEvent(index: number, e : ImageErrorEvent) { + imageErrorEvent(index : number, e : ImageErrorEvent) { console.log("图片加载错误", e.detail); // 图片加载失败,加载本地占位图 this.data[index].errorImage = '/static/template/drop-card/dislike.png' - }, - imageOutsideStaticErrorEvent(e: ImageErrorEvent) { - console.log("图片加载错误", e.detail); - this.outsideStaticErrorPath = '/static/template/drop-card/dislike.png' } }, } -- GitLab