fix: 优化导入提示,优化坐标判断

This commit is contained in:
@changcode
2021-12-20 16:58:58 +08:00
parent a5e82c239d
commit 05582063bd
2 changed files with 2 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ export default {
},
setLatlng () {
const lnglat = this.lnglat.split(',')
if (!lnglat[0] && !lnglat[1]) {
if (lnglat[0] !== 'undefined' && lnglat[1] !== 'undefined') {
this.mapParam.longitude = lnglat[0]
this.mapParam.latitude = lnglat[1]
} else {

View File

@@ -276,7 +276,7 @@ export default {
this.importBox.value = 1
this.importBox.record = 'all'
})
}, 100)
}, 200)
},
downloadTemplate () {
const language = localStorage.getItem('nz-language') || 'en' // 初始未选择默认 en 英文