优化代码

This commit is contained in:
不做码农 2021-11-28 20:45:26 +08:00
parent 1023a687d5
commit 8fbfdbc14f
2 changed files with 4 additions and 3 deletions

View File

@ -67,4 +67,5 @@ new Vue({
router,
store,
render: h => h(App)
})
})
console.log('后端地址:' + process.env.VUE_APP_BASE_API)

View File

@ -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