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 @@