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/views/exam/startexam.vue |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/views/exam/startexam.vue b/src/views/exam/startexam.vue
index 2198205..0926792 100644
--- a/src/views/exam/startexam.vue
+++ b/src/views/exam/startexam.vue
@@ -183,9 +183,9 @@
       // return;
       // debugger;
       updateApplyStatus(data).then(res => {
-        that.resData["examScoreId"] = res.data.id;
-        this.$store.commit("SetScoreId", res.data.id);
-        // console.log(res.data.id, "ididididiidididididid");
+        that.resData["examScoreId"] = res.data.examScore.id;
+        this.$store.commit("SetScoreId", res.data.examScore.id);
+        this.$store.commit("SetScoreType", res.data.type);
         window.name = "";
         this.$notify({
           message:
@@ -202,7 +202,6 @@
       });
     },
     getUserInfoBYExam() {
-      console.log(this.option,456123)
       var that = this;
       let setData = ({ color, subtext, isExam }) => {
         that.option.data = [

--
Gitblit v1.9.3