1
This commit is contained in:
parent
a7ede5a6cc
commit
67a047c313
@ -1,6 +1,6 @@
|
||||
// 应用全局配置
|
||||
module.exports = {
|
||||
baseUrl: 'http://192.168.1.17:8080',
|
||||
baseUrl: 'http://192.168.1.4:8080',
|
||||
// baseUrl: 'http://localhost:8080',
|
||||
// 应用信息
|
||||
appInfo: {
|
||||
|
@ -75,17 +75,16 @@
|
||||
if (this.queryParams.pageNum == 1) {
|
||||
this.dataList = res.data.records
|
||||
this.dataList = this.dataList.map(item => {
|
||||
item.imagesList = item.images.split(',').map(image => this.uploadUrl + image.trim());
|
||||
item.imagesList = item.images.split(',').map(image => ({ url: this.uploadUrl + image.trim() }));
|
||||
return item;
|
||||
});
|
||||
} else {
|
||||
this.dataList = this.dataList.concat(res.data.records)
|
||||
this.dataList = this.dataList.map(item => {
|
||||
item.imagesList = item.images.split(',').map(image => this.uploadUrl + image.trim());
|
||||
item.imagesList = item.images.split(',').map(image => ({ url: this.uploadUrl + image.trim() }));
|
||||
return item;
|
||||
});
|
||||
}
|
||||
console.log(this.dataList)
|
||||
this.total = res.data.data.total
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user