车辆管理系统-后台管理系统web
spring
3 天以前 9a11bff3d98aea29f37abc34a00a17f5c92ade9c
vue.config.js
@@ -3,7 +3,7 @@
const defaultSettings = require("./src/settings.js");
// 代理目标地址(后端服务),例如: http://172.17.0.1:8080
// 启动时可通过环境变量覆盖:VUE_APP_PROXY_TARGET=...
const baseUrl = process.env.VUE_APP_PROXY_TARGET || "http://1.15.17.182/:9031";
const baseUrl = process.env.VUE_APP_PROXY_TARGET || "http://1.15.17.182:9031";
function resolve(dir) {
  return path.join(__dirname, dir);
@@ -16,7 +16,7 @@
// For example, Mac: sudo npm run
// You can change the port by the following method:
// port = 9527 npm run dev OR npm run dev --port = 9527
// 固定开发服务端口:确保外部可访问 `172.17.0.1:9031`
// 固定开发服务端口:确保外部可访问 `1.15.17.182:9031`
const port = 9001; // dev port
// All configuration item explanations can be find in https://cli.vuejs.org/config/
@@ -35,7 +35,9 @@
    "@babel",
    "resize-detector",
  ],
  publicPath: "/",
  // 部署到子路径时需要改 publicPath,否则静态资源会从域名根目录 `/static/...` 获取失败
  // 例如部署到 `http://host/car-before/`,则打包时设置 VUE_APP_PUBLIC_PATH=/car-before/
  publicPath: process.env.VUE_APP_PUBLIC_PATH || "/",
  outputDir: "dist",
  assetsDir: "static",
  // 在部分环境下 eslint-loader 会因配置解析失败直接导致构建中断