diff --git a/pages/component/image/image-path.uvue b/pages/component/image/image-path.uvue
index c85a9d088fab6e7d8dc20210f60cc2ca2525ba2d..0fc2291339a6cf58941f8fb83dcc094c4b0ac56f 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'
}
},
}