Newer
Older
XinYang_SanWei+RongYun / src / util / interface.js
@张强云笔记本 张强云笔记本 on 22 Dec 2021 480 bytes 前端提交
import department from './department'
// import dataSource from './apiField/dataSource';

const host = '/sysApi'

let nozzle = {
  userTree: '/task/userTree' // 登录页

}

// for (let items in department) {
//     nozzle[items] = department[items];
// }
for (const item in nozzle) {
  nozzle[item] = host + nozzle[item]
}
// nozzle = Object.assign(nozzle, project)
nozzle = Object.assign(nozzle, department)
// nozzle = Object.assign(nozzle, dataSource);
export default nozzle