From 261a15df4997528eb8d8b1d5c01cc733eaf6ee30 Mon Sep 17 00:00:00 2001 From: 13218645326 Date: Sat, 2 Dec 2023 17:14:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E6=8E=A5=E5=8F=A3=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/echartsCom/Pie3dCom.vue | 17 ++-- src/components/echartsCom/barCom.vue | 2 +- src/http/api.md | 17 ++++ src/http/api/echartApi.ts | 38 ++++++++ src/http/index.ts | 11 ++- src/views/screen/sharePlatform.vue | 122 ++++++++++++++++++++++--- vite.config.ts | 42 ++++----- 7 files changed, 199 insertions(+), 50 deletions(-) create mode 100644 src/http/api.md create mode 100644 src/http/api/echartApi.ts diff --git a/src/components/echartsCom/Pie3dCom.vue b/src/components/echartsCom/Pie3dCom.vue index 3cec34d..dc29913 100644 --- a/src/components/echartsCom/Pie3dCom.vue +++ b/src/components/echartsCom/Pie3dCom.vue @@ -4,7 +4,14 @@ diff --git a/vite.config.ts b/vite.config.ts index a2294a4..a5ddc2c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -86,36 +86,36 @@ export default ({ mode }: any) => { rewrite: (path) => path.replace(/^\/proxyApi/, ''), configure: (proxy, _options) => { proxy.on('error', (err, _req, _res) => { - console.log('proxy error', err) + // console.log('proxy error', err) }) proxy.on('start', (req, res, target) => { - console.log( - 'Proxy Start:', - req.method, - req.url, - req.headers, - _options - ) + // console.log( + // 'Proxy Start:', + // req.method, + // req.url, + // req.headers, + // _options + // ) }) proxy.on('proxyReq', (proxyReq, req, _res) => { - console.log( - 'Sending Request to the Target:', - req.method, - req.url, - req.headers, - _options - ) + // console.log( + // 'Sending Request to the Target:', + // req.method, + // req.url, + // req.headers, + // _options + // ) proxyReq.removeHeader('origin') // 跨域解决 }) proxy.on('proxyRes', (proxyRes, req, _res) => { - console.log( - 'Received Response from the Target:', - proxyRes.statusCode, - proxyRes.headers, - req.url - ) + // console.log( + // 'Received Response from the Target:', + // proxyRes.statusCode, + // proxyRes.headers, + // req.url + // ) }) } }