|
@@ -2,6 +2,7 @@ import { stemTypeList, scoreTypeList, questionNumberTypeList, switchOption, font
|
|
|
import { getRandomNumber } from '@/utils/index';
|
|
|
import { GetStaticResources } from '@/api/app';
|
|
|
import { addTone } from '@/views/exercise_questions/data/common';
|
|
|
+let res_arr = [];
|
|
|
|
|
|
export function getOption(content = '') {
|
|
|
return {
|
|
@@ -60,7 +61,6 @@ export function handleValue(valItem) {
|
|
|
|
|
|
function handleReplaceTone(value, mark, matically_pinyin_obj) {
|
|
|
if (!value) return;
|
|
|
- let res_arr = [];
|
|
|
value.split(/\s+/).forEach((item) => {
|
|
|
res_arr.push(handleValue(item));
|
|
|
});
|
|
@@ -89,7 +89,7 @@ export function handleSplitPy(item) {
|
|
|
handleItemPinyin(item.pinyin, item.mark, matically_pinyin_obj);
|
|
|
setTimeout(() => {
|
|
|
item.pinyin = matically_pinyin_obj[item.mark];
|
|
|
- }, 100);
|
|
|
+ }, 10);
|
|
|
}
|
|
|
let pinyin_list = item.pinyin.trim().split(' ');
|
|
|
item.pinyin_item_list = [];
|