Selaa lähdekoodia

更改上传摄像头信息的content-type

Michael Wang 6 vuotta sitten
vanhempi
commit
bd7ebecd65
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 6 1
      src/features/OnlineExam/Examing/ExamingHome.vue

+ 6 - 1
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -186,7 +186,12 @@ export default {
             console.log(CameraInfo);
             this.$http.post(
               "/api/ecs_core/log/studentClient/debug/S-001001",
-              CameraInfo
+              CameraInfo,
+              {
+                headers: {
+                  "Content-Type": "text/plain"
+                }
+              }
             );
           }
         });