车辆管理系统-后台管理系统web
spring
3 天以前 32f9807e62a4932c5b6873af32343f10c2fbfa12
fix: 打包配置
已修改4个文件
14 ■■■■ 文件已修改
src/settings.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/vehicle/queuing/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/vehicle/registration/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/settings.js
@@ -12,7 +12,7 @@
// - 浏览器运行时可使用 location.origin
// - Node 构建/加载阶段(vue-cli-service 加载 vue.config.js)没有 location,必须兜底
const VUE_APP_API_URL =
  process.env.VUE_APP_BASE_API || "http://172.17.0.1:9031/api/";
  process.env.VUE_APP_BASE_API || "http://1.15.17.182:9031/api/";
module.exports = {
  // 接口请求地址
  apiBaseURL: VUE_APP_API_URL,
src/views/vehicle/queuing/index.vue
@@ -473,7 +473,7 @@
      overTimeObj: null,
      // wsUrl: "wss://car-manager.truekey.mobi/admin/lineup",
      wsUrl: "wss://172.17.0.1:9031/admin/lineup",
      wsUrl: "ws://1.15.17.182:9031/admin/lineup",
      ws: null,
      lockReconnect: false, // 是否连接成功
@@ -483,7 +483,7 @@
  },
  mounted() {
    if (process.env.NODE_ENV === "production") {
      let url = "https://172.17.0.1:9031/time";
      let url = "http://1.15.17.182:9031/time";
      // let url = "https://car-manager.truekey.mobi/time";
      fetch(url, {
        method: "GET",
@@ -554,7 +554,7 @@
        newEl.registerTime = res.registerTime || "-";
        newEl.remark = res.remark || "-";
        // newEl.url = `https://car-manager.truekey.mobi/driver/javaMobile/queryResult/${res.linkCode}`;
        newEl.url = `https://172.17.0.1:9031/driver/javaMobile/queryResult/${res.linkCode}`;
        newEl.url = `http://1.15.17.182:9031/driver/javaMobile/queryResult/${res.linkCode}`;
        newEl.visible = true;
        setTimeout(() => {
@@ -628,7 +628,7 @@
    },
    reloadOverTime() {
      let that = this;
      let url = "https://172.17.0.1:9031/time";
      let url = "http://1.15.17.182:9031/time";
      // let url = "https://car-manager.truekey.mobi/time";
      fetch(url, {
        method: "GET",
src/views/vehicle/registration/index.vue
@@ -725,7 +725,7 @@
        newEl.registerTime = element.registerTime || "-";
        newEl.remark = element.remark || "-";
        // newEl.url = `https://car-manager.truekey.mobi/driver/javaMobile/queryResult/${element.linkCode}`;
         newEl.url = `https://172.17.0.1:9031/driver/javaMobile/queryResult/${element.linkCode}`;
         newEl.url = `http://1.15.17.182:9031/driver/javaMobile/queryResult/${element.linkCode}`;
        newEl.visible = true;
        printArr.push(newEl);
      }
vue.config.js
@@ -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/