From 5f3d4fd7cbb36944a6a1bd428fb54f8e732b2d52 Mon Sep 17 00:00:00 2001 From: X_Rian <904416525@qq.com> Date: Thu, 25 Jul 2024 11:10:14 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E4=BF=AE=E6=94=B9app=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BD=BF=E7=94=A8instanceof=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/personLocation/exam/studydetails/studydetails.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/personLocation/exam/studydetails/studydetails.vue b/pages/personLocation/exam/studydetails/studydetails.vue index cfa19c5e..19d214dd 100644 --- a/pages/personLocation/exam/studydetails/studydetails.vue +++ b/pages/personLocation/exam/studydetails/studydetails.vue @@ -76,7 +76,7 @@ this.videoStartTime = this.$formatDates(new Date().getTime(), 'yyyy-MM-dd HH:mm:ss'); this.startFlag = false; } - console.log(dataEvery && videoEvery && (this.videoList.length > 0 || this.dataList > 0)) + console.log(dataEvery, videoEvery, (this.videoList.length > 0 || this.dataList > 0)) if(dataEvery && videoEvery && (this.videoList.length > 0 || this.dataList > 0)){ let requestData = { workerId: this.userInfo.id, @@ -259,9 +259,10 @@ method: 'post', success(res) { if (res.code == 200) { - that.isPageLength = res.result.records instanceof Array ? res.result.records.length : 0; - console.log(22222, res, that.isPageLength); + that.isPageLength = Array.isArray(res.result.records) ? res.result.records.length : 0; + console.log(22222, res.result.records.length, that.isPageLength); const isPageFlag = that.isPageLength > 0 ? true : false; + console.log(isPageFlag); that.dataList.map(item => { that.$set(item,'isFileOver',isPageFlag) })