riku
2024-11-07 5036880fc037e5d112206b93a729f60be12bf8ab
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);
}