Commit 2f1edf0a by heshihao

feat: 修改代理地址

parent 78c85bad
// import api from '../../utils/http'
import api from '@/utils/http'
import api from "@/utils/http";
const cockpit = {
menu: "/api/attract/industry/menu",
......@@ -11,49 +10,54 @@ const cockpit = {
DataNotification: "/api/attract/industry/DataNotification",
IndustryDistribute: "/api/attract/industry/IndustryDistribute",
Information: "/api/xiaocx/Information",
}
kfqInfo: "/api/attract/industry/GetKfqEco",
};
const DataNotification = () => {
return api.get(cockpit.DataNotification)
}
return api.get(cockpit.DataNotification);
};
const menu = (district) => {
return api.post(cockpit.menu, {
district: district
})
}
district: district,
});
};
const video = (district) => {
return api.post(cockpit.video, {
district: district
})
}
district: district,
});
};
const getInfo = (district) => {
return api.post(cockpit.info, {
district: district
})
}
district: district,
});
};
const propol = (district) => {
return api.post(cockpit.propol, {
district: district
})
}
district: district,
});
};
const project = (district) => {
return api.post(cockpit.project, {
district: district
})
}
district: district,
});
};
const IndustryDistribute = (flag) => {
return api.post(cockpit.IndustryDistribute, {
flag
})
}
flag,
});
};
const Information = () => {
return api.post(cockpit.Information, {
name: '',
name: "",
flag: 2,
page: 1,
perpage: 5000
})
}
perpage: 5000,
});
};
const getKfqInfo = () => {
return api.get(cockpit.kfqInfo);
};
export default {
menu,
......@@ -63,5 +67,6 @@ export default {
project,
DataNotification,
IndustryDistribute,
Information
}
\ No newline at end of file
Information,
getKfqInfo,
};
......@@ -27,7 +27,7 @@ module.exports = {
// logLevel: 'debug'
},
"^/api": {
target: "http://192.168.110.15:5003",
target: "https://mancheng.industrychain.online",
changeOrigin: true,
// pathRewrite: {
// "/api": "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment