add && remove

This commit is contained in:
Pan
2017-04-23 19:50:32 +08:00
parent 3e3819cae3
commit a7b09a2a01
18 changed files with 421 additions and 20169 deletions

View File

@@ -6,3 +6,11 @@ export function getList() {
method: 'get'
});
}
export function getArticle() {
return fetch({
url: '/article/detail',
method: 'get'
});
}

9
src/api/remoteSearch.js Normal file
View File

@@ -0,0 +1,9 @@
import { fetch } from 'utils/fetch';
export function userSearch(name) {
return fetch({
url: '/search/user',
method: 'get',
params: { name }
});
}