services/baseRequset.js
@@ -1,10 +1,4 @@ import { basePicUrl, baseUrl, baseFileUrl, baseIconUrl, mode, } from '../config/index'; import { basePicUrl, baseUrl, baseFileUrl, baseIconUrl, mode } from '../config/index'; function request(fun, hostUrl) { const bUrl = hostUrl ? hostUrl : baseUrl; @@ -69,3 +63,8 @@ fun['method'] = 'POST'; return request(fun, hostUrl); } export function put(fun, hostUrl) { fun['method'] = 'PUT'; return request(fun, hostUrl); }