Newer
Older
operation_web / src / util / interface.js
import CHGTwo from "./CHGTwo";
import project from "./project";
import nfQuery from "./nfQuery";
// import SJFX from "./SJFX";
import led from "./led";
import IotPc from "./IotPc";
import group from "./group";
import projectSet from "./projectSet";
import serverManage from "./serverManage";
// import task from './apiField/task';
// import dataSource from './apiField/dataSource';

let host = "/Api";
let nozzle = {
  // login: "/sys/login", //登录页
  logout: "/logout", //注销
  sysMenuList: "/sys/menu/list" //获取菜单路由
};

// for (let items in department) {
//     nozzle[items] = department[items];
// }
for (let item in nozzle) {
  nozzle[item] = host + nozzle[item];
}
nozzle = Object.assign(nozzle, project);
nozzle = Object.assign(nozzle, CHGTwo);
nozzle = Object.assign(nozzle, nfQuery);
// nozzle = Object.assign(nozzle, SJFX);
nozzle = Object.assign(nozzle, led);
nozzle = Object.assign(nozzle, IotPc);
nozzle = Object.assign(nozzle, group);
nozzle = Object.assign(nozzle, projectSet);
nozzle = Object.assign(nozzle, serverManage);
// nozzle = Object.assign(nozzle, dataSource);
export default nozzle;