初始化 antd-pro
This commit is contained in:
15
admin-web/mock/geographic.js
Normal file
15
admin-web/mock/geographic.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import city from './geographic/city.json';
|
||||
import province from './geographic/province.json';
|
||||
|
||||
function getProvince(req, res) {
|
||||
return res.json(province);
|
||||
}
|
||||
|
||||
function getCity(req, res) {
|
||||
return res.json(city[req.params.province]);
|
||||
}
|
||||
|
||||
export default {
|
||||
'GET /api/geographic/province': getProvince,
|
||||
'GET /api/geographic/city/:province': getCity,
|
||||
};
|
||||
Reference in New Issue
Block a user