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.status = StatueEnum.DONE;
|
||||
};
|
||||
img.onerror = (e: Event) => {
|
||||
const ele: EventTarget[] = e.composedPath();
|
||||
img.onerror = (e: Event | string) => {
|
||||
const ele: EventTarget[] = (e as Event).composedPath();
|
||||
ele &&
|
||||
emit('img-error', {
|
||||
index: imgState.currentIndex,
|
||||
|
Loading…
Reference in New Issue
Block a user