Explorar o código

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

Michael Wang %!s(int64=6) %!d(string=hai) anos
pai
achega
bd7ebecd65
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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"
+                }
+              }
             );
           }
         });