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