|
@@ -310,7 +310,7 @@ async function saveStudentAnswer() {
|
|
if (!student) return;
|
|
if (!student) return;
|
|
const form = new FormData();
|
|
const form = new FormData();
|
|
form.append("studentId", student.id + "");
|
|
form.append("studentId", student.id + "");
|
|
- const answers = student.answers.map((v) => v.answer).join(",");
|
|
|
|
|
|
+ const answers = student.answers.map((v) => v.answer).join("");
|
|
if (!answers.match(/^(#*[A-Z]*)+$/g)) {
|
|
if (!answers.match(/^(#*[A-Z]*)+$/g)) {
|
|
void message.error("答案只能是#和大写英文字母");
|
|
void message.error("答案只能是#和大写英文字母");
|
|
return;
|
|
return;
|