fix server

This commit is contained in:
Bluemangoo 2026-04-01 16:27:04 +08:00
parent ef0b2b51b1
commit d6d706af95
Signed by: Bluemangoo
GPG Key ID: F2F7E46880A1C4CF
2 changed files with 2 additions and 3 deletions

View File

@ -85,7 +85,7 @@
answers.push(label.innerText.trim()); answers.push(label.innerText.trim());
} }
} }
return question + answers.map((s) => "- " + s.replaceAll("\t", "")).join("\n"); return question + "\n\n" + answers.map((s) => "- " + s.replaceAll("\t", "")).join("\n");
} }
function copyToClipboard() { function copyToClipboard() {

View File

@ -1,5 +1,5 @@
import router from "../router"; import router from "../router";
import { coursePolls, deepSeekPolls } from "../data/polls"; import { deepSeekPolls } from "../data/polls";
router.on("/question", async function (data, response) { router.on("/question", async function (data, response) {
const { question } = data.body; const { question } = data.body;
@ -14,7 +14,6 @@ router.on("/question", async function (data, response) {
} }
console.log("Received question", question); console.log("Received question", question);
const polls = deepSeekPolls.value; const polls = deepSeekPolls.value;
coursePolls.value = [];
const pollData = { const pollData = {
questionID: questionId, questionID: questionId,
question: question, question: question,