From 77e5fffda0fa2549928de216dfc17fa984335d78 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 23 Aug 2021 09:37:09 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E4=BF=AE=E6=94=B9=E6=96=B0?= =?UTF-8?q?=E5=A2=9Edc=E6=B2=A1=E6=9C=89=E4=BC=A0=E5=9D=90=E6=A0=87?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/rightBox/dcBox.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nezha-fronted/src/components/common/rightBox/dcBox.vue b/nezha-fronted/src/components/common/rightBox/dcBox.vue index 90723fd45..f48394d00 100644 --- a/nezha-fronted/src/components/common/rightBox/dcBox.vue +++ b/nezha-fronted/src/components/common/rightBox/dcBox.vue @@ -118,6 +118,7 @@ export default { if (this.editDc.id) { const param = { ...this.editDc } const attr = this.$refs.latlngPicker.getAttribute() + console.log(attr) param.latitude = attr.latitude param.longitude = attr.longitude this.$put('/dc', param).then(response => { @@ -134,6 +135,9 @@ export default { if (param.area) { param.areaId = param.area.id } + const attr = this.$refs.latlngPicker.getAttribute() + param.latitude = attr.latitude + param.longitude = attr.longitude if (!regNum.test(param.longitude)) { param.longitude = null }