This commit is contained in:
PQZ 2025-04-14 17:33:08 +08:00
parent a7ede5a6cc
commit 67a047c313
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
// 应用全局配置 // 应用全局配置
module.exports = { module.exports = {
baseUrl: 'http://192.168.1.17:8080', baseUrl: 'http://192.168.1.4:8080',
// baseUrl: 'http://localhost:8080', // baseUrl: 'http://localhost:8080',
// 应用信息 // 应用信息
appInfo: { appInfo: {

View File

@ -75,17 +75,16 @@
if (this.queryParams.pageNum == 1) { if (this.queryParams.pageNum == 1) {
this.dataList = res.data.records this.dataList = res.data.records
this.dataList = this.dataList.map(item => { 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; return item;
}); });
} else { } else {
this.dataList = this.dataList.concat(res.data.records) this.dataList = this.dataList.concat(res.data.records)
this.dataList = this.dataList.map(item => { 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; return item;
}); });
} }
console.log(this.dataList)
this.total = res.data.data.total this.total = res.data.data.total
} }
}) })