From ae65e215975ea5fec83e24a35583992d93c5d1c2 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Thu, 31 Aug 2023 10:09:36 +0800
Subject: [PATCH] 考試bug 修復,同时2台电脑登录考试页面时,会产生2个成绩修改

---
 src/api/examapi/examination.js |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/src/api/examapi/examination.js b/src/api/examapi/examination.js
index d5ee7bd..c6a1252 100644
--- a/src/api/examapi/examination.js
+++ b/src/api/examapi/examination.js
@@ -39,24 +39,22 @@
 }
 
 
-export const getExamDetail = (userId) => {
+export const getExamDetail = (data) => {
     return request({
         url: '/api/exampaper/getExamDetail',
-        method: 'get',
-        params: {
-            userId
-        }
+        method: 'post',
+        data: data
     })
 }
 
 
 export const getNowTime = () => {
-    return request({
-        url: '/api/exampaper/getdate/',
-        method: 'get',
-    })
-}
-//首页到时间计算成绩
+        return request({
+            url: '/api/exampaper/getdate/',
+            method: 'get',
+        })
+    }
+    //首页到时间计算成绩
 export const calculations = (id) => {
     return request({
         url: '/api/examScore/getExamScore/',
@@ -65,4 +63,4 @@
             id
         }
     })
-}
+}
\ No newline at end of file

--
Gitblit v1.9.3