mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Image): avoid duplicate load event
This commit is contained in:
parent
128972a753
commit
87a9272ece
@ -97,8 +97,10 @@ export default defineComponent({
|
||||
);
|
||||
|
||||
const onLoad = (event?: Event) => {
|
||||
loading.value = false;
|
||||
emit('load', event);
|
||||
if (loading.value) {
|
||||
loading.value = false;
|
||||
emit('load', event);
|
||||
}
|
||||
};
|
||||
|
||||
const onError = (event?: Event) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user