Browse Source

自测bug修复

刘洋 1 năm trước cách đây
mục cha
commit
cea82f1d6e
1 tập tin đã thay đổi với 10 bổ sung10 xóa
  1. 10 10
      src/features/OnlineExam/Examing/ExamingHome.vue

+ 10 - 10
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -238,7 +238,6 @@ addInterval(() => checkRemoteApp(), 3 * 60 * 1000);
 //#endregion 防作弊检查
 
 const userInfo = $computed(() => {
-  //todo
   let showInfo: string = store.QECSConfig.SHOW_INFO || "";
   let arr = showInfo.split(",");
   const a = arr.includes("STU_NAME") ? store.user.displayName : "";
@@ -248,15 +247,16 @@ const userInfo = $computed(() => {
   const c = arr.includes("IDENTITY_NUMBER")
     ? store.user.identityNumber + ""
     : "";
-  let split1 = a && (b || c) ? " - " : "";
-  let split2 = c && (a || b) ? " - " : "";
-  return arr.length
-    ? a + split1 + b + split2 + c
-    : store.user.displayName +
-        " - " +
-        store.user.studentCodeList.join(",") +
-        " - " +
-        store.user.identityNumber;
+  return [a, b, c].filter(Boolean).join(" - ");
+  // let split1 = a && (b || c) ? " - " : "";
+  // let split2 = c && (a || b) ? " - " : "";
+  // return arr.length
+  //   ? a + split1 + b + split2 + c
+  //   : store.user.displayName +
+  //       " - " +
+  //       store.user.studentCodeList.join(",") +
+  //       " - " +
+  //       store.user.identityNumber;
 });
 </script>