刘嘉威
2022-10-25 19fe2c123c31b18566f36a2773b0f2ea0901df63
src/api/index.ts
@@ -2,12 +2,14 @@
 * @Author: daidai
 * @Date: 2021-12-23 11:18:37
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-10-11 15:43:20
 * @LastEditTime: 2022-10-25 11:06:03
 * @FilePath: \web-pc-svn\src\api\modules\index.js
 */
import {GET,POST,FILE,FILEPOST,PUT} from "./api";
import {GET,POST,FILE,FILEPOST,PUT,GETNOBASE} from "./api";
import Index from "./modules"
export {GETNOBASE}
interface urlObj {
    [key:string| number]:string
}
@@ -25,9 +27,6 @@
export const currentPUT = (key:Keys, param: any) => {
  return PUT(urlObj[key], param);
};
export const currentPUTPath = (key:Keys,type:Keys, param: any) => {
  return PUT(urlObj[key]+type, param);
};
export const currentPOST = (key:Keys, param?: any) => {
  return POST(urlObj[key], param||{});
};
@@ -38,7 +37,6 @@
export const currentFILEPOST = (key:Keys, param?: any) => {
  return FILEPOST(urlObj[key], param||{},{});
};
// 通用接口集合
export const currentApi = {
  currentPOST,