From e8e3b2b23cc4014e7739a74b621f1193d771d5fb Mon Sep 17 00:00:00 2001 From: "BOOL\\25024" Date: Fri, 4 Aug 2023 09:38:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87=E7=B4=AF?= =?UTF-8?q?=E5=8A=A0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsowell-ui/src/views/pile/station/components/SiteInfo.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jsowell-ui/src/views/pile/station/components/SiteInfo.vue b/jsowell-ui/src/views/pile/station/components/SiteInfo.vue index 0f075a289..532e162a4 100644 --- a/jsowell-ui/src/views/pile/station/components/SiteInfo.vue +++ b/jsowell-ui/src/views/pile/station/components/SiteInfo.vue @@ -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, "$&,")