diff --git a/src/api/index.js b/src/api/index.js index 7ee89e6..cb85ca8 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -133,15 +133,17 @@ export function componyhonor(){ }) } //首页企业新闻 -export function indexNews(){ +export function indexNews(params){ return request({ - url:'/article/enterpriseNews' + url:'/article/enterpriseNews', + params }) } //首页企业新闻 -export function indexInformation(){ +export function indexInformation(params){ return request({ - url:'/article/newsInformation' + url:'/article/newsInformation', + params }) } //首页新闻分类 diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 9e2e4b3..ff3e10e 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -25,7 +25,7 @@