|
@@ -9,7 +9,7 @@ const CompressionPlugin = require('compression-webpack-plugin')
|
|
|
|
|
|
const name = process.env.VUE_APP_TITLE || '设备管理系统' // 网页标题
|
|
|
|
|
|
-const port = process.env.port || process.env.npm_config_port || 80 // 端口
|
|
|
+const port = process.env.port || process.env.npm_config_port || 16061 // 端口
|
|
|
|
|
|
// vue.config.js 配置说明
|
|
|
//官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions
|
|
@@ -35,7 +35,7 @@ module.exports = {
|
|
|
proxy: {
|
|
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
- target: `http://127.0.0.1:8080`, // https://sylwt.top:8080/
|
|
|
+ target: `http://localhost:16060`,
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|