Commit 8c24e6d7 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化热门词汇

parent 222e7142
...@@ -99,10 +99,9 @@ export default { ...@@ -99,10 +99,9 @@ export default {
if (res.data.code === 1) { if (res.data.code === 1) {
this.newSourceEnumData = res.data.dict.newsSource; this.newSourceEnumData = res.data.dict.newsSource;
if (res.data.data.data.length > 0) { if (res.data.data.data.length > 0) {
this.baseSetInfo.hotwords = res.data.data.data[0].hotwordList.slice( this.baseSetInfo.hotwords = res.data.data.data[0].hotwordList
0, .filter((v) => v.hotwords)
10 .slice(0, 10);
);
this.baseSetInfo.printDisplay = res.data.data.data[0].printDisplay; this.baseSetInfo.printDisplay = res.data.data.data[0].printDisplay;
this.baseSetInfo.newsSource = res.data.data.data[0].newsSource + ""; this.baseSetInfo.newsSource = res.data.data.data[0].newsSource + "";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment