Parcourir la source

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

Michael Wang il y a 6 ans
Parent
commit
bd7ebecd65
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  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"
+                }
+              }
             );
           }
         });