You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong_qianduan/api/article/index.js

23 lines
448 B

11 months ago
import request from '@/utils/request'
// api地址
const api = {
list: 'article/list',
10 months ago
detail: 'article/detail',
del: 'article/del'
}
// 文章列表
export function del(param, option) {
return request.post(api.del, param, option)
11 months ago
}
// 文章列表
export function list(param, option) {
return request.get(api.list, param, option)
}
// 文章详情
export function detail(articleId) {
return request.get(api.detail, { articleId })
}