tangning hace 2 años
padre
commit
fddd150627
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/views/home/submit.vue

+ 2 - 2
src/views/home/submit.vue

@@ -167,17 +167,17 @@ const formData = reactive({
   getAddrPhone: '',
   getType: 0,
   message:'',
-  wxOpenId: wxOpenId.value,
 });
 async function onSubmit() {
   // return new Promise((resolve) => {
   let apiData = {
     ...formData,
+    wxOpenId: wxOpenId.value,
     faultImg:formData.faultImg.map(ele => ele.url)
   }
   const { response } = await cameraRepair(apiData);
   let data = unref(response)
-  console.log('onSubmit', formData, data);
+  console.log('onSubmit', formData, data,'wxOpenId',wxOpenId);
   if(data.code == 200){
     showSuccessToast('提交成功')
     emit('setActive',1)