diff --git a/manifest.json b/manifest.json index 66e8752..1613f54 100644 --- a/manifest.json +++ b/manifest.json @@ -105,7 +105,7 @@ "devServer" : { "https" : true, "proxy": { - "/api": { + "/api-proxy": { "target": "https://aip.baidubce.com", "pathRewrite": { "^/api": "" diff --git a/package.json b/package.json index 4d9f129..2e9575a 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "crypto-js": "^3.1.9-1", "log4node": "^0.1.6", "request": "^2.88.2", - "request-promise": "^4.2.5" + "request-promise": "^4.2.5", + "echarts": "^5.2.2" }, "license": "ISC", "repository": { diff --git a/vue.config.js b/vue.config.js index ce2ea51..abb7beb 100644 --- a/vue.config.js +++ b/vue.config.js @@ -6,13 +6,6 @@ module.exports = { target: 'https://apis.map.qq.com', changeOrigin: true, pathRewrite: { '^map-api': '' } - }, - '/api': { - target: 'https://aip.baidubce.com', // 目标服务器 - changeOrigin: true, // 允许跨域 - pathRewrite: { - '^/api': '', // 将 /api 替换为空 - } } } }