mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 18:40:22 +08:00
chore(Preview): 消除 onerror 参数类型错误
This commit is contained in:
parent
a5a11fb846
commit
ec33820bf9
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user