From 85eeceff3d0066ab31175eb183fa618bbcdf4136 Mon Sep 17 00:00:00 2001 From: lpq Date: Fri, 24 Feb 2023 21:35:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/DownLoad.vue | 1 + vue.config.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/DownLoad.vue b/src/views/DownLoad.vue index af7fe54b..e9a79873 100644 --- a/src/views/DownLoad.vue +++ b/src/views/DownLoad.vue @@ -177,6 +177,7 @@ export default { } function formatCapacityGB(data) { + debugger let num = Number(data); let CMB = (num / (1048576*1024)).toFixed(2); return CMB diff --git a/vue.config.js b/vue.config.js index 56f9b80f..4c22a764 100644 --- a/vue.config.js +++ b/vue.config.js @@ -15,8 +15,8 @@ module.exports = defineConfig({ port: 8070, proxy: { "/manageApi": { - target: 'http:' + process.env.VUE_APP_PROXY_URL, - // target: 'http://localhost:30001', + //target: 'http:' + process.env.VUE_APP_PROXY_URL, + target: 'http://localhost:30001', changeOrigin: true, //表示是否改变原域名 pathRewrite: { "^/manageApi": "",