|
@@ -56,11 +56,18 @@ function getAudioPlayedTimes(name: string) {
|
|
|
store.exam.allAudioPlayTimes.find((a) => a.audioName === name)?.times ?? 0;
|
|
|
return Math.max(examQuestion.limitedPlayTimes - playedTimes, 0);
|
|
|
}
|
|
|
+
|
|
|
+function cutNbsp(str: string) {
|
|
|
+ if (typeof str !== "string") {
|
|
|
+ return str;
|
|
|
+ }
|
|
|
+ return (str || "").replace(/ /g, " ");
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
<div v-if="questionSegements" class="question-body">
|
|
|
- <div v-html="questionSegements.text" />
|
|
|
+ <div v-html="cutNbsp(questionSegements.text)"></div>
|
|
|
|
|
|
<div
|
|
|
v-for="item in questionSegements.audios"
|