You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
476 B
JavaScript

6 months ago
import request from '@/utils/request'
// api地址
const api = {
list: 'clientApi/article/list',
detail: 'clientApi/article/detail',
cate: 'clientApi/article/cateList',
}
// 文章列表
export const list = (param) => {
return request.post(api.list, param)
}
// 文章详情
export const detail = (articleId) => {
return request.post(api.detail, { articleId })
}
// 文章分类列表
export const cateList = (param) => {
return request.post(api.cate, param)
}