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

修改配置文件

parent bf812791
......@@ -85,16 +85,18 @@ export default {
.then((res) => {
if (res.code == 1) {
console.log(res)
const temp = res.data.data
//console.log(temp)
const list = [];
for (let i = 1; i < 17; i++) {
// 判断是否为空
if (temp['image'+ i] != null){
list.push(temp['image'+ i])
if(res.data.data.length>0){
const temp = res.data.data[0]
//console.log(temp)
const list = [];
for (let i = 1; i < 17; i++) {
// 判断是否为空
if (temp['image'+ i] != null){
list.push(temp['image'+ i])
}
}
this.list = list
}
this.list = 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