|
@@ -92,13 +92,21 @@ export default {
|
|
|
},
|
|
|
// 查询系统搜索关键热词
|
|
|
getHotWordList() {
|
|
|
+ this.hotSearchList = [];
|
|
|
let MethodName = "/PaperServer/Client/Dict/QueryHotWordList";
|
|
|
let data = {
|
|
|
- limit: 9,
|
|
|
+ limit: 50,
|
|
|
};
|
|
|
getLogin(MethodName, data).then((res) => {
|
|
|
if (res.status === 1) {
|
|
|
- this.hotSearchList = res.data;
|
|
|
+ const regex =
|
|
|
+ /[\u4e00-\u9fff\u3400-\u4dbf\uf900-\ufaff\u3400-\u4d00]/;
|
|
|
+ res.data.forEach((item) => {
|
|
|
+ if (![...item].some((char) => regex.test(char))) {
|
|
|
+ this.hotSearchList.push(item);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.hotSearchList = this.hotSearchList.slice(0, 9);
|
|
|
}
|
|
|
});
|
|
|
},
|