Commit 0cc215f8 authored by “yiyousong”'s avatar “yiyousong”

fix:修改基础设置

parent 100f8e7a
...@@ -98,7 +98,10 @@ export default { ...@@ -98,7 +98,10 @@ 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; this.baseSetInfo.hotwords = res.data.data.data[0].hotwordList.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