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": "",