ElemeFE / ElemeFE/element

[Bug Report] When el-image in a dynamic element, the image will request twice

Open
#23,019 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.14

### OS/Browsers version
chrome 131.0.6778.108

### Vue version
2.6.11

### Reproduction Link
```



Vue Element Image Example










Loading...




new Vue({
el: '#app',
data: {
task: []
},
mounted() {
setTimeout(() => {
this.task.push(1);
}, 1000);
}
});

```

### Steps to reproduce
The same issue as https://github.com/ElemeFE/element/issues/19712, the difference is when the el-image is in a dynamic element, the image will load twice.

### What is Expected?
load once

### What is actually happening?
load twice

![image](https://github.com/user-attachments/assets/1741af1b-ee20-4d8a-9d20-30cd99c193de)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.