flx:修改app无法使用instanceof问题

This commit is contained in:
X_Rian 2024-07-25 11:10:14 +08:00
parent aa9fe0be1c
commit 5f3d4fd7cb

View File

@ -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)
})