We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3836309 commit dbd2c85Copy full SHA for dbd2c85
1 file changed
src/uni_modules/wot-design-uni/components/wd-img/wd-img.vue
@@ -1,3 +1,11 @@
1
+<!--
2
+ * @Author: 810505339
3
+ * @Date: 2024-09-25 11:30:46
4
+ * @LastEditors: 810505339
5
+ * @LastEditTime: 2025-01-09 11:37:45
6
+ * @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\components\wd-img\wd-img.vue
7
+ * 记得注释
8
+-->
9
<template>
10
<view :class="rootClass" @click="handleClick" :style="rootStyle">
11
<image
@@ -63,7 +71,7 @@ function handleError(event: any) {
63
71
emit('error', event)
64
72
}
65
73
function handleClick(event: MouseEvent) {
66
- if (props.enablePreview && props.src) {
74
+ if (props.enablePreview && props.src && status.value == 'success') {
67
75
uni.previewImage({
68
76
urls: [props.src]
69
77
})
0 commit comments