fix(ImagePreview): fix loading when previewing images (#11376)
This commit is contained in:
@@ -204,9 +204,11 @@ export default defineComponent({
|
|||||||
// so the initial complete state should be checked.
|
// so the initial complete state should be checked.
|
||||||
// https://github.com/youzan/vant/issues/11335
|
// https://github.com/youzan/vant/issues/11335
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (imageRef.value?.complete) {
|
nextTick(() => {
|
||||||
onLoad();
|
if (imageRef.value?.complete) {
|
||||||
}
|
onLoad();
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
return () => (
|
return () => (
|
||||||
|
|||||||
Reference in New Issue
Block a user