flx:修改app无法使用instanceof问题
This commit is contained in:
parent
aa9fe0be1c
commit
5f3d4fd7cb
@ -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)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user