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.videoStartTime = this.$formatDates(new Date().getTime(), 'yyyy-MM-dd HH:mm:ss');
|
||||||
this.startFlag = false;
|
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)){
|
if(dataEvery && videoEvery && (this.videoList.length > 0 || this.dataList > 0)){
|
||||||
let requestData = {
|
let requestData = {
|
||||||
workerId: this.userInfo.id,
|
workerId: this.userInfo.id,
|
||||||
@ -259,9 +259,10 @@
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
success(res) {
|
success(res) {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
that.isPageLength = res.result.records instanceof Array ? res.result.records.length : 0;
|
that.isPageLength = Array.isArray(res.result.records) ? res.result.records.length : 0;
|
||||||
console.log(22222, res, that.isPageLength);
|
console.log(22222, res.result.records.length, that.isPageLength);
|
||||||
const isPageFlag = that.isPageLength > 0 ? true : false;
|
const isPageFlag = that.isPageLength > 0 ? true : false;
|
||||||
|
console.log(isPageFlag);
|
||||||
that.dataList.map(item => {
|
that.dataList.map(item => {
|
||||||
that.$set(item,'isFileOver',isPageFlag)
|
that.$set(item,'isFileOver',isPageFlag)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user