Commit 0c000b3f authored by 陈帅's avatar 陈帅

change url

parent 3363969c
...@@ -64,6 +64,6 @@ export default { ...@@ -64,6 +64,6 @@ export default {
address: '西湖区工专路 77 号', address: '西湖区工专路 77 号',
phone: '0752-268888888', phone: '0752-268888888',
}, },
'GET /api/province': getProvince, 'GET /api/geographic/province': getProvince,
'GET /api/city/:province': getCity, 'GET /api/geographic/city/:province': getCity,
}; };
...@@ -5,11 +5,11 @@ export async function queryCurrent() { ...@@ -5,11 +5,11 @@ export async function queryCurrent() {
} }
export async function queryProvince() { export async function queryProvince() {
return request('/api/province'); return request('/api/geographic/province');
} }
export async function queryCity(province: string) { export async function queryCity(province: string) {
return request(`/api/city/${province}`); return request(`/api/geographic/city/${province}`);
} }
export async function query() { export async function query() {
......
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "cross-env PAGES_PATH='ListBasicList/src' umi dev", "dev": "cross-env PAGES_PATH='AccountSettings/src' umi dev",
"lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier", "lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"lint-staged:ts": "tslint", "lint-staged:ts": "tslint",
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
"dependencies": { "dependencies": {
"@types/react-dom": "^16.8.4", "@types/react-dom": "^16.8.4",
"cross-env": "^5.2.0", "cross-env": "^5.2.0",
"numeral": "^2.0.6",
"react-dom": "^16.8.6" "react-dom": "^16.8.6"
}, },
"devDependencies": { "devDependencies": {
......
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