Skip to content

Commit

Permalink
fix(image): component data update is not triggered correctly (#3443)
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs authored Jan 14, 2025
1 parent c16c9c8 commit 024269b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class Image extends SuperComponent {
classPrefix: name,
};

preSrc = ''; // 保留上一次的src,防止在src相同时重复update
preSrc = undefined; // 保留上一次的src,防止在src相同时重复update

observers = {
src() {
Expand Down

0 comments on commit 024269b

Please sign in to comment.