add dashboard

This commit is contained in:
Pan
2017-04-21 15:12:45 +08:00
parent 33e384ee95
commit a3a331bd15
9 changed files with 67 additions and 59 deletions

View File

@@ -1,29 +1,8 @@
import fetch, { tpFetch } from 'utils/fetch';
import { param } from 'utils';
import { tpFetch } from 'utils/fetch';
export function getList(query) {
export function getList() {
return tpFetch({
url: '/article/list',
method: 'get'
});
}
export function upload(data) {
return tpFetch({
url: 'https://upload.qbox.me',
method: 'post',
data
});
}
/* 外部uri转七牛uri*/
export function netUpload(token, net_url) {
const imgData = {
net_url
};
return fetch({
url: '/qiniu/upload/net/async',
method: 'post',
data: imgData
});
}