From c604691c59ae658d9bd8624a2d0b9be7158dacd2 Mon Sep 17 00:00:00 2001 From: qiang Date: Thu, 10 Mar 2022 20:30:15 +0800 Subject: [PATCH] chore: reset file change --- src/core/view/components/swiper/index.vue | 3 --- src/platforms/app-plus/view/components/live-pusher/index.vue | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/view/components/swiper/index.vue b/src/core/view/components/swiper/index.vue index 56b703d60..842e95d11 100644 --- a/src/core/view/components/swiper/index.vue +++ b/src/core/view/components/swiper/index.vue @@ -490,7 +490,6 @@ export default { } }, _handleTrackStart () { - if (!this.items.length) return this._cancelSchedule() this._contentTrackViewport = this._viewportPosition this._contentTrackSpeed = 0 @@ -498,7 +497,6 @@ export default { this._cancelViewportAnimation() }, _handleTrackMove (data) { - if (!this.items.length) return var self = this var contentTrackT = this._contentTrackT this._contentTrackT = Date.now() @@ -533,7 +531,6 @@ export default { } }, _handleTrackEnd (isCancel) { - if (!this.items.length) return this.userTracking = false var t = this._contentTrackSpeed / Math.abs(this._contentTrackSpeed) var n = 0 diff --git a/src/platforms/app-plus/view/components/live-pusher/index.vue b/src/platforms/app-plus/view/components/live-pusher/index.vue index b0bdabb22..343db76c2 100644 --- a/src/platforms/app-plus/view/components/live-pusher/index.vue +++ b/src/platforms/app-plus/view/components/live-pusher/index.vue @@ -37,6 +37,10 @@ export default { name: 'LivePusher', mixins: [subscriber, native], props: { + id: { + type: String, + default: '' + }, url: { type: String, default: '' -- GitLab