diff --git a/pages/short_video/nvueSwiper/index.nvue b/pages/short_video/nvueSwiper/index.nvue index 3b2a460..681e11a 100644 --- a/pages/short_video/nvueSwiper/index.nvue +++ b/pages/short_video/nvueSwiper/index.nvue @@ -743,19 +743,26 @@ get() { let that = this // 1.这里引入后端请求数据 - - deoList(this.videoID).then(res => { - that.videoData([res.data]) - if (res.data.list.length < that.limit) { - this.loadMore = false; - } - }).catch(err => { - return uni.showToast({ - title: err, - icon: 'none', - duration: 2000 - }); - }) + if(this.videoID){ + deoList(this.videoID).then(res => { + that.videoData([res.data]) + if (res.data.list.length < that.limit) { + this.loadMore = false; + } + }).catch(err => { + return uni.showToast({ + title: err, + icon: 'none', + duration: 2000 + }); + }) + this.videoID='' + }else{ + videoList().then(res=>{ + that.videoData(res.data.list); + }) + } + // that.isUser ? // myVideoList(that.userUid, { // page: that.page,