标签:log ros eject this data type eth list The
methods: {
getLightList() {
let that = this;
return new Promise((resolve, reject) => {
that.query.type = ‘0‘;// 灯光
getLightList(this.query).then(res => {
that.lightList = res.data.data;
resolve(res.data.data)
});
})
},
async getCrossList () {
let that = this;
let lightList = await this.getLightList();
this.query.type = ‘1‘;// 能耗
getLightList(this.query).then(res => {
that.crossList = res.data.data;
console.log(lightList.length)
console.log(that.crossList.length)
});
}
标签:log ros eject this data type eth list The
原文地址:https://www.cnblogs.com/GraceYang/p/14189193.html