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

perf: 优化热门词汇

parent 222e7142
......@@ -99,10 +99,9 @@ export default {
if (res.data.code === 1) {
this.newSourceEnumData = res.data.dict.newsSource;
if (res.data.data.data.length > 0) {
this.baseSetInfo.hotwords = res.data.data.data[0].hotwordList.slice(
0,
10
);
this.baseSetInfo.hotwords = res.data.data.data[0].hotwordList
.filter((v) => v.hotwords)
.slice(0, 10);
this.baseSetInfo.printDisplay = res.data.data.data[0].printDisplay;
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