diff --git a/jeecgboot-vue3/src/api/mainHome/index.ts b/jeecgboot-vue3/src/api/mainHome/index.ts index 90de3bc..369de3a 100644 --- a/jeecgboot-vue3/src/api/mainHome/index.ts +++ b/jeecgboot-vue3/src/api/mainHome/index.ts @@ -54,4 +54,49 @@ export function getindexarticle(params) { method: 'GET', params, }); +} +// 获取全部文章 +export function getindexallarticle() { + return defHttp.request({ + url: '/cms/front/cmsfindallnews', + method: 'GET', + }); +} +// 获取文章详情 +export function getindexarticleitem(params) { + return defHttp.request({ + url: '/cms/front/getByArticleTitle', + method: 'GET', + params, + }); +} +// 获取首页新闻 +export function getindexnews() { + return defHttp.request({ + url: '/cms/front/getindexnew', + method: 'GET', + }); +} +// 获取专家信息 +export function getindexexpert(params) { + return defHttp.request({ + url: '/expert/expert/listadminCMS', + method: 'GET', + params + }); +} +// 获取专家详情 +export function getindexexpertdetail(params) { + return defHttp.request({ + url: '/expert/expert/CMSexpinfo', + method: 'GET', + params, + }); +} +// 获取专家类型 +export function getindexexperttype() { + return defHttp.request({ + url: '/expert/expert/directioncalListCMS', + method: 'GET', + }); } \ No newline at end of file diff --git a/jeecgboot-vue3/src/router/helper/mainOut.ts b/jeecgboot-vue3/src/router/helper/mainOut.ts index ce05304..f2a435e 100644 --- a/jeecgboot-vue3/src/router/helper/mainOut.ts +++ b/jeecgboot-vue3/src/router/helper/mainOut.ts @@ -90,7 +90,7 @@ export const mainOutRoutes: AppRouteModule[] = [ meta: { title: '新闻详情', ignoreAuth: true, - hidden: false + hidden: true }, }, diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue index 82e3ed9..b196bf6 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue @@ -2,39 +2,41 @@