修改图片累加bug

This commit is contained in:
BOOL\25024
2023-08-04 09:38:07 +08:00
parent dd80ed13c0
commit e8e3b2b23c

View File

@@ -450,6 +450,7 @@ export default {
},
// 渲染表格数据
async queryStationInfo() {
this.fileList=[];
const res = await getStationInfo(this.stationId);
console.log(res);
this.station = res.data;
@@ -498,8 +499,10 @@ export default {
this.station.stationLng = String(data.pos[0]);
this.station.stationLat = String(data.pos[1]);
// console.log("修改后this.station", this.station);
console.log(data.address,'data.address')
this.station.address = data.address.includes('区') ? data.address.replace(/区/, ' ').split(' ')[1] : data.address
console.log(data.address, "data.address");
this.station.address = data.address.includes("区")
? data.address.replace(/区/, " ").split(" ")[1]
: data.address;
// 优化之后
// let newAddress2 = this.detailedAddress
// .replace(/(?<=[省市区])/g, "$&,")