mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
修改图片累加bug
This commit is contained in:
@@ -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, "$&,")
|
||||
|
||||
Reference in New Issue
Block a user