From 8fbfdbc14fc1dece4adc937b6990c30b8d9ac6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Sun, 28 Nov 2021 20:45:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Vue/src/main.js | 3 ++- ZR.Vue/vue.config.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ZR.Vue/src/main.js b/ZR.Vue/src/main.js index e81993f..4bb5702 100644 --- a/ZR.Vue/src/main.js +++ b/ZR.Vue/src/main.js @@ -67,4 +67,5 @@ new Vue({ router, store, render: h => h(App) -}) \ No newline at end of file +}) +console.log('后端地址:' + process.env.VUE_APP_BASE_API) \ No newline at end of file diff --git a/ZR.Vue/vue.config.js b/ZR.Vue/vue.config.js index 4a1fb79..4b9cde4 100644 --- a/ZR.Vue/vue.config.js +++ b/ZR.Vue/vue.config.js @@ -29,8 +29,8 @@ module.exports = { productionSourceMap: false, // webpack-dev-server 相关配置 devServer: { - host: '0.0.0.0', - port: 8887,// port, + host: '0.0.0.0',//项目启动host + port: 8887,// 项目启动port, open: true, proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy