wkw há 6 meses atrás
pai
commit
3fac43e1d1
1 ficheiros alterados com 5 adições e 6 exclusões
  1. 5 6
      src/components/header/header.vue

+ 5 - 6
src/components/header/header.vue

@@ -1175,7 +1175,7 @@
 				formRef.validate((valid) => {
 					if (valid) {
 						let form = JSON.parse(JSON.stringify(this.form));
-						console.log(form)
+						
 						const data = {
 							companyAllName: form.companyName,
 							companyPeople: form.companyPeople,
@@ -1250,8 +1250,8 @@
 			},
 			// PDF 上传成功
 			handlePdfSuccess(res, file) {
-				this.form.employmentVerification = res.url
-				this.pdfFileList = [{ name: file.name, url: res.url }]
+				this.form.employmentVerification = res.data
+				this.pdfFileList = [{ name: file.name, url: res.data }]
 			},
 			handlePdfRemove() {
 				this.form.employmentVerification = ''
@@ -1260,13 +1260,13 @@
 			// 公司证明上传成功
 			handleProofSuccess(res, file, fileList) {
 				this.form.companyVerification = fileList.map(
-					item => item.response ? item.response.url : item.url
+					item => item.response ? item.response.data : item.url
 				)
 				this.proofFileList = fileList
 			},
 			handleProofRemove(file, fileList) {
 				this.form.companyVerification = fileList.map(
-					item => item.response ? item.response.url : item.url
+					item => item.response ? item.response.data : item.url
 				)
 				this.proofFileList = fileList
 			},
@@ -1690,7 +1690,6 @@
 							} else {
 								this.isUserVip = false
 								this.$store.commit('SET_IS_COMPANY_VIP', false);
-
 							}
 						}
 					}