Browse Source

spd问题提报做undefined校验

黄梓星 1 năm trước cách đây
mục cha
commit
97c750cbba
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/views/spdAddQuestion/add.vue

+ 3 - 3
src/views/spdAddQuestion/add.vue

@@ -141,9 +141,9 @@ export default {
     let phonenumber = this.GetQueryString('phonenumber')
     let hosName = this.GetQueryString('hosName')
     let officeName = this.GetQueryString('officeName')
-    if(phonenumber) { this.basicForm.contactInfo = phonenumber }
-    if(hosName) { this.basicForm.hospital = hosName }
-    if(officeName) { this.basicForm.department = officeName }
+    if(phonenumber && phonenumber != 'undefined') { this.basicForm.contactInfo = phonenumber }
+    if(hosName && hosName != 'undefined') { this.basicForm.hospital = hosName }
+    if(officeName && officeName != 'undefined') { this.basicForm.department = officeName }
   },
   methods: {
     successUpload(resp, file, fileList) {