Newer
Older
XinYang_SanWei+RongYun / src / util / interface.js
@张强云笔记本 张强云笔记本 on 21 Dec 2021 470 bytes 更替代码
import department from './department'
// import dataSource from './apiField/dataSource';

const host = '/api'

let nozzle = {
  login: '/sys/login' // 登录页

}

// 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