Commit f913879d authored by “yiyousong”'s avatar “yiyousong”

perf: 过滤热门词汇

parent 43ff0178
......@@ -135,7 +135,9 @@ export default {
let res = await getHomeInfo({});
let { data, code } = res.data;
if (code === 1) {
data.hotWords = data.hotWords.map((v) => v.hotwords);
data.hotWords = data.hotWords
.filter((v) => v.hotwords)
.map((v) => v.hotwords);
this.homeInfo = data;
this.SET_homeInfo(data);
this.SET_datumList(data.datumList);
......
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