diff --git a/pages/component/global-events/touch-events-bubbles.uvue b/pages/component/global-events/touch-events-bubbles.uvue index 36f533bbb188ccb026e9ee2811ecb934229131f7..40279098a41960cacff2295b20ac42beac7eef73 100644 --- a/pages/component/global-events/touch-events-bubbles.uvue +++ b/pages/component/global-events/touch-events-bubbles.uvue @@ -24,9 +24,9 @@ return { iconRect: null as DOMRect | null, viewEleRect: null as DOMRect | null, - touchstartValue: [], - touchmoveValue: [], - touchendValue: [], + touchstartValue: [] as string[], + touchmoveValue: [] as string[], + touchendValue: [] as string[], ret1: false, ret2: false } @@ -68,7 +68,7 @@ this.clearValue() }, onTouchStart(e : TouchEvent) { - let _id = e.currentTarget!.attributes.get("id") + let _id = e.currentTarget!.attributes.get("id") as string if (!this.touchstartValue.includes(_id)) { @@ -80,7 +80,7 @@ onTouchMove(e : TouchEvent) { - let _id = e.currentTarget!.attributes.get("id") + let _id = e.currentTarget!.attributes.get("id") as string if (!this.touchmoveValue.includes(_id)) { this.touchmoveValue.push(_id) @@ -90,7 +90,7 @@ }, onTouchEnd(e : TouchEvent) { - let _id = e.currentTarget!.attributes.get("id") + let _id = e.currentTarget!.attributes.get("id") as string if (!this.touchendValue.includes(_id)) { this.touchendValue.push(_id)