|
|
@ -210,8 +210,8 @@ |
|
|
imgState.currentUrl = url; |
|
|
imgState.currentUrl = url; |
|
|
imgState.status = StatueEnum.DONE; |
|
|
imgState.status = StatueEnum.DONE; |
|
|
}; |
|
|
}; |
|
|
img.onerror = (e: Event) => { |
|
|
img.onerror = (e: Event | string) => { |
|
|
const ele: EventTarget[] = e.composedPath(); |
|
|
const ele: EventTarget[] = (e as Event).composedPath(); |
|
|
ele && |
|
|
ele && |
|
|
emit('img-error', { |
|
|
emit('img-error', { |
|
|
index: imgState.currentIndex, |
|
|
index: imgState.currentIndex, |
|
|
|