diff --git a/src/api/xq/areaCode.js b/src/api/xq/areaCode.js index be49d99..a119950 100644 --- a/src/api/xq/areaCode.js +++ b/src/api/xq/areaCode.js @@ -9,6 +9,14 @@ export function listAreaCode(query) { }) } +// 查询行政区划详细 +export function getTreeAreaCode() { + return request({ + url: '/xq/areaCode/tree', + method: 'get' + }) +} + // 查询行政区划详细 export function getAreaCode(code) { return request({ diff --git a/vue.config.js b/vue.config.js index 8d48eee..3d89d0c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,8 +35,8 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:8080`, - // target: `http://xq.qiqizl.com/prod-api`, + // target: `http://localhost:8080`, + target: `http://xq.qiqizl.com/prod-api`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''