From 024269bb1f30eef9e55054fc7b759822d8818adb Mon Sep 17 00:00:00 2001 From: betavs <34408516+betavs@users.noreply.github.com> Date: Tue, 14 Jan 2025 14:13:02 +0800 Subject: [PATCH] fix(image): component data update is not triggered correctly (#3443) --- src/image/image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image/image.ts b/src/image/image.ts index f36b7b38a..a4b8b0639 100644 --- a/src/image/image.ts +++ b/src/image/image.ts @@ -24,7 +24,7 @@ export default class Image extends SuperComponent { classPrefix: name, }; - preSrc = ''; // 保留上一次的src,防止在src相同时重复update + preSrc = undefined; // 保留上一次的src,防止在src相同时重复update observers = { src() {