mirror of
https://github.com/likeshop-github/likeshop.git
synced 2024-11-13 04:04:39 +08:00
29 lines
No EOL
696 B
JavaScript
29 lines
No EOL
696 B
JavaScript
import request from '@/utils/request'
|
|
import {client} from '@/utils/tools'
|
|
//文章分类
|
|
export function getCategoryList(data) {
|
|
let {type} = data
|
|
let url = type ? 'help/category' : 'article/category'
|
|
delete data.type
|
|
return request.get(url)
|
|
}
|
|
|
|
//文章列表
|
|
export function getArticleList(data) {
|
|
let {type} = data
|
|
let url = type ? 'help/lists' : 'article/lists'
|
|
delete data.type
|
|
return request.get(url, {
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 文章详情
|
|
export function getArticleDetail(data) {
|
|
let {type} = data
|
|
let url = type ? 'help/detail' : 'article/detail'
|
|
delete data.type
|
|
return request.get(url, {
|
|
params: { id: data.id }
|
|
})
|
|
} |