|
@@ -76,6 +76,7 @@
|
|
|
class="queston-edit"
|
|
|
:style="quesionEditStyle"
|
|
|
v-ele-click-outside-directive="hideEditQuestion"
|
|
|
+ @keydown.stop
|
|
|
@keyup.enter="onSaveQuesion"
|
|
|
>
|
|
|
<a-input
|
|
@@ -181,7 +182,7 @@ const panelBodyRef = ref();
|
|
|
function onEditQuestion(index: number) {
|
|
|
curQuestionIndex.value = index;
|
|
|
const qcont = questionList.value[curQuestionIndex.value];
|
|
|
- curQuestion.value = qcont.split("").join(",");
|
|
|
+ curQuestion.value = qcont;
|
|
|
|
|
|
quesionEditShow.value = true;
|
|
|
updateQuestionEditPos(index);
|
|
@@ -210,7 +211,7 @@ function onSaveQuesion() {
|
|
|
message.error("请输入答案!");
|
|
|
return;
|
|
|
}
|
|
|
- const questionCont = curQuestion.value.split(",").join("");
|
|
|
+ const questionCont = curQuestion.value;
|
|
|
|
|
|
if (!questionCont) {
|
|
|
message.error("请输入答案!");
|