|
@@ -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>
|
|
|
|