wangzhe %!s(int64=2) %!d(string=hai) anos
pai
achega
52110fc029
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/components/eventLocation.vue

+ 3 - 0
src/components/eventLocation.vue

@@ -308,6 +308,9 @@ export default {
       if (this.longitude == null || this.longitude == '' || this.latitude == null || this.latitude == '') {
       if (this.longitude == null || this.longitude == '' || this.latitude == null || this.latitude == '') {
         this.$modal.msgError('请输入经纬度!')
         this.$modal.msgError('请输入经纬度!')
         return
         return
+      } else if (this.longitude >180 || this.longitude < -180 || this.latitude > 90 || this.latitude < -90) {
+        this.$modal.msgError('请输入正确经纬度!')
+        return
       }
       }
       this.activeName = 'event'
       this.activeName = 'event'
       let marker = [{
       let marker = [{