fix[logical]: 修复题目无法调整的问题

- 修复填空无法跳转, 填空内容增加缺失的 "'"
This commit is contained in:
Huangzhe
2025-03-24 11:28:35 +08:00
parent e43635c11c
commit d1bdc582c4

View File

@@ -145,7 +145,7 @@ function quesHandle(answer, logChild) {
status = eval(`'${answer.value}'.${operatorHandle(logChild.operator)}('${logChild.value}')`);
} else {
// eslint-disable-next-line no-eval
status = eval(`${answer.value}${operatorHandle(logChild.operator)}${logChild.value}`);
status = eval(`'${answer.value}'${operatorHandle(logChild.operator)}'${logChild.value}'`);
}
return status;
};