Browse Source

csu.ecs.qmth.com.cn 中南大学 才有图片作答题

Michael Wang 6 năm trước cách đây
mục cha
commit
d834f231a9

+ 6 - 1
src/features/Login/Login.vue

@@ -306,7 +306,12 @@ export default {
           const specialty = (await this.$http.get(
             "/api/ecs_exam_work/exam_student/specialtyNameList/"
           )).data;
-          const user = { ...data, ...student, specialty: specialty.join() };
+          const user = {
+            ...data,
+            ...student,
+            specialty: specialty.join(),
+            schoolDomain: this.schoolDomain
+          };
           this.updateUser(user);
           window.localStorage.setItem("user-for-reload", JSON.stringify(user));
 

+ 1 - 1
src/features/OnlineExam/Examing/TextQuestionView.vue

@@ -99,7 +99,7 @@
       </div>
 
       <!-- FIXME -->
-      <div v-if="this.$store.state.user.rootOrgId === 0">
+      <div v-if="this.$store.state.user.schoolDomain === 'csu.ecs.qmth.com.cn'">
         <UploadPhotos
           :defaultList="
             photoAnswers.map(v => {