优化代码

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

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

View File

@ -29,8 +29,8 @@ module.exports = {
productionSourceMap: false, productionSourceMap: false,
// webpack-dev-server 相关配置 // webpack-dev-server 相关配置
devServer: { devServer: {
host: '0.0.0.0', host: '0.0.0.0',//项目启动host
port: 8887,// port, port: 8887,// 项目启动port,
open: true, open: true,
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy