1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-06 03:57:53 +08:00
2017-08-28 13:18:35 +08:00

26 lines
379 B
JavaScript

import fetch from '@/utils/fetch'
export function fetchList(query) {
return fetch({
url: '/article/list',
method: 'get',
params: query
})
}
export function fetchArticle() {
return fetch({
url: '/article/detail',
method: 'get'
})
}
export function fetchPv(pv) {
return fetch({
url: '/article/pv',
method: 'get',
params: { pv }
})
}