From 59c7f68202dddbed1e1de2e619867e060e0dcfb3 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 17 Dec 2024 15:53:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E4=BB=A3=E7=90=86=E8=B0=83?= =?UTF-8?q?=E6=95=B4=EF=BC=8C=E6=B7=BB=E5=8A=A0echarts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- package.json | 3 ++- vue.config.js | 7 ------- 3 files changed, 3 insertions(+), 9 deletions(-) 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 替换为空 - } } } }