From 55ae4b93ea93a2a2c82f1fc610eca33c6ed623d7 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Mon, 20 Dec 2021 16:57:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Ddcbox=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E5=9D=90=E6=A0=87=E6=8A=A5=E9=94=99=E5=8F=8A=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E4=BF=A1=E6=81=AF=E9=94=99=E8=AF=AF=E6=97=B6=E7=82=B9?= =?UTF-8?q?=E5=87=BBbox=E5=A4=96=E6=9C=AA=E5=BC=B9=E5=87=BA=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=A1=86=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E9=94=99=E8=AF=AF=E6=97=B6=EF=BC=8C=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=88=90=E5=8A=9F=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/latlngPicker.vue | 9 +++++++-- .../common/popBox/topToolMoreOptions.vue | 16 +++++++++------- .../src/components/common/rightBox/dcBox.vue | 2 +- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/nezha-fronted/src/components/common/latlngPicker.vue b/nezha-fronted/src/components/common/latlngPicker.vue index 224599a5e..139d69fc7 100644 --- a/nezha-fronted/src/components/common/latlngPicker.vue +++ b/nezha-fronted/src/components/common/latlngPicker.vue @@ -116,8 +116,13 @@ export default { }, setLatlng () { const lnglat = this.lnglat.split(',') - this.mapParam.longitude = lnglat[0] - this.mapParam.latitude = lnglat[1] + if (lnglat[0] !== 'undefined' && lnglat[1] !== 'undefined') { + this.mapParam.longitude = lnglat[0] + this.mapParam.latitude = lnglat[1] + } else { + this.mapParam.longitude = '-33.9257813' + this.mapParam.latitude = '55.5761251' + } this.$emit('lnglatChange', this.lnglat, this.zoom) }, getAttribute () { diff --git a/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue b/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue index 8e617c80b..1a3383a90 100644 --- a/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue +++ b/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue @@ -268,13 +268,15 @@ export default { }, closeDialog () { this.importBox.show = false - this.$nextTick(() => { - this.importResult = null - this.importFileList = [] - this.importFile = null - this.importBox.value = 1 - this.importBox.record = 'all' - }) + setTimeout(() => { + this.$nextTick(() => { + this.importResult = null + this.importFileList = [] + this.importFile = null + this.importBox.value = 1 + this.importBox.record = 'all' + }) + }, 200) }, downloadTemplate () { const language = localStorage.getItem('nz-language') || 'en' // 初始未选择默认 en 英文 diff --git a/nezha-fronted/src/components/common/rightBox/dcBox.vue b/nezha-fronted/src/components/common/rightBox/dcBox.vue index ac63c8dcc..7f2d1306c 100644 --- a/nezha-fronted/src/components/common/rightBox/dcBox.vue +++ b/nezha-fronted/src/components/common/rightBox/dcBox.vue @@ -1,5 +1,5 @@