|
@@ -1265,7 +1265,7 @@ export default {
|
|
|
for (let i = 1; i < num; i++) {
|
|
|
if (type == 'left') {
|
|
|
if (index - i >= 0) {
|
|
|
- if (this.chsFhList.indexOf(arr[index - i]) == -1) {
|
|
|
+ if (/[\u4E00-\u9FA5\uF900-\uFA2D]/.test(arr[index - i])) {
|
|
|
arr[index - i] = `<span style=color:${colorList[colorIndex]};>${arr[index - i]}</span>`;
|
|
|
colorIndex++;
|
|
|
} else {
|
|
@@ -1274,7 +1274,7 @@ export default {
|
|
|
}
|
|
|
} else if (type == 'right') {
|
|
|
if (index + i <= arr.length - 1) {
|
|
|
- if (this.chsFhList.indexOf(arr[index + i]) == -1) {
|
|
|
+ if (/[\u4E00-\u9FA5\uF900-\uFA2D]/.test(arr[index + i])) {
|
|
|
arr[index + i] = `<span style=color:${colorList[colorIndex]};>${arr[index + i]}</span>`;
|
|
|
colorIndex++;
|
|
|
} else {
|