Commit ec46eed3 authored by 赵啸非's avatar 赵啸非

修改配置文件

parent bf812791
...@@ -85,16 +85,18 @@ export default { ...@@ -85,16 +85,18 @@ export default {
.then((res) => { .then((res) => {
if (res.code == 1) { if (res.code == 1) {
console.log(res) console.log(res)
const temp = res.data.data if(res.data.data.length>0){
//console.log(temp) const temp = res.data.data[0]
const list = []; //console.log(temp)
for (let i = 1; i < 17; i++) { const list = [];
// 判断是否为空 for (let i = 1; i < 17; i++) {
if (temp['image'+ i] != null){ // 判断是否为空
list.push(temp['image'+ i]) if (temp['image'+ i] != null){
list.push(temp['image'+ i])
}
} }
this.list = list
} }
this.list = list
console.log("list",this.list) console.log("list",this.list)
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment