Browse Source

本地代理调整,添加echarts

master
mk 8 months ago
parent
commit
59c7f68202
  1. 2
      manifest.json
  2. 3
      package.json
  3. 7
      vue.config.js

2
manifest.json

@ -105,7 +105,7 @@
"devServer" : { "devServer" : {
"https" : true, "https" : true,
"proxy": { "proxy": {
"/api": { "/api-proxy": {
"target": "https://aip.baidubce.com", "target": "https://aip.baidubce.com",
"pathRewrite": { "pathRewrite": {
"^/api": "" "^/api": ""

3
package.json

@ -17,7 +17,8 @@
"crypto-js": "^3.1.9-1", "crypto-js": "^3.1.9-1",
"log4node": "^0.1.6", "log4node": "^0.1.6",
"request": "^2.88.2", "request": "^2.88.2",
"request-promise": "^4.2.5" "request-promise": "^4.2.5",
"echarts": "^5.2.2"
}, },
"license": "ISC", "license": "ISC",
"repository": { "repository": {

7
vue.config.js

@ -6,13 +6,6 @@ module.exports = {
target: 'https://apis.map.qq.com', target: 'https://apis.map.qq.com',
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^map-api': '' } pathRewrite: { '^map-api': '' }
},
'/api': {
target: 'https://aip.baidubce.com', // 目标服务器
changeOrigin: true, // 允许跨域
pathRewrite: {
'^/api': '', // 将 /api 替换为空
}
} }
} }
} }

Loading…
Cancel
Save