Commit 222e7142 authored by “yiyousong”'s avatar “yiyousong”

perf: 过滤热门词汇

parent 83856dd6
......@@ -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);
let 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