refactor
This commit is contained in:
@@ -1,16 +1,25 @@
|
||||
import fetch from 'utils/fetch'
|
||||
import fetch from '@/utils/fetch'
|
||||
|
||||
export function getList() {
|
||||
export function fetchList(query) {
|
||||
return fetch({
|
||||
url: '/article/list',
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getArticle() {
|
||||
export function fetchArticle() {
|
||||
return fetch({
|
||||
url: '/article/detail',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchPv(pv) {
|
||||
return fetch({
|
||||
url: '/article/pv',
|
||||
method: 'get',
|
||||
params: { pv }
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user