浏览代码

正式地址

cz 1 年之前
父节点
当前提交
ff44ec2cad

+ 2 - 2
.env.production

@@ -8,13 +8,13 @@ VITE_APP_ENV = 'production'
 VITE_APP_BASE_API = '/prod-api'
 VITE_APP_BASE_API = '/prod-api'
 
 
 # IP地址
 # IP地址
-VITE_APP_IP = 'ehsd.winfaster.cn'
+VITE_APP_IP = '175.178.26.5'
 
 
 # WS
 # WS
 VITE_APP_WS_API = '/prod-api'
 VITE_APP_WS_API = '/prod-api'
 
 
 #上传文件地址
 #上传文件地址
-VITE_APP_UPLOAD_API='121.37.194.75:20010'
+VITE_APP_UPLOAD_API='175.178.26.5'
 VITE_APP_UPLOAD_BASE_API = '/prod-api'
 VITE_APP_UPLOAD_BASE_API = '/prod-api'
 
 
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 # 是否在打包时开启压缩,支持 gzip 和 brotli

+ 1 - 1
src/components/process/SF/Contract.vue

@@ -1643,7 +1643,7 @@ const handleClickUpload = async (att, flag, index) => {
     path = formData.data.contractProductList[index][att];
     path = formData.data.contractProductList[index][att];
   }
   }
   let a = document.createElement("a");
   let a = document.createElement("a");
-  a.href = "printer://" + "ftp://121.37.194.75/" + path + "/";
+  a.href = "printer://" + `ftp://${import.meta.env.VITE_APP_IP}/` + path + "/";
   a.style.display = "none";
   a.style.display = "none";
   document.body.appendChild(a);
   document.body.appendChild(a);
   a.click();
   a.click();

+ 1 - 1
src/components/process/SF/ContractChange.vue

@@ -1640,7 +1640,7 @@ const handleClickUpload = async (att, flag, index) => {
     path = formData.data.contractProductList[index][att];
     path = formData.data.contractProductList[index][att];
   }
   }
   let a = document.createElement("a");
   let a = document.createElement("a");
-  a.href = "printer://" + "ftp://121.37.194.75/" + path + "/";
+  a.href = "printer://" + `ftp://${import.meta.env.VITE_APP_IP}/` + path + "/";
   a.style.display = "none";
   a.style.display = "none";
   document.body.appendChild(a);
   document.body.appendChild(a);
   a.click();
   a.click();

+ 1 - 1
src/views/EHSD/productLibrary/companyProduct/index.vue

@@ -1388,7 +1388,7 @@ const handleClickUpload = async (att, flag) => {
     path = formData.data[att];
     path = formData.data[att];
   }
   }
   let a = document.createElement("a");
   let a = document.createElement("a");
-  a.href = "printer://" + "ftp://121.37.194.75/" + path + "/";
+  a.href = "printer://" + `ftp://${import.meta.env.VITE_APP_IP}/` + path + "/";
   a.style.display = "none";
   a.style.display = "none";
   document.body.appendChild(a);
   document.body.appendChild(a);
   a.click();
   a.click();

+ 1 - 1
src/views/EHSD/productLibrary/waitCreateProduct/index.vue

@@ -1141,7 +1141,7 @@ const handleClickUpload = async (att, flag) => {
     path = formData.data[att];
     path = formData.data[att];
   }
   }
   let a = document.createElement("a");
   let a = document.createElement("a");
-  a.href = "printer://" + "ftp://121.37.194.75/" + path + "/";
+  a.href = "printer://" + `ftp://${import.meta.env.VITE_APP_IP}/` + path + "/";
   a.style.display = "none";
   a.style.display = "none";
   document.body.appendChild(a);
   document.body.appendChild(a);
   a.click();
   a.click();

+ 1 - 1
src/views/MES/productionOrder/index.vue

@@ -1035,7 +1035,7 @@ const handleClickUpload = async (att, flag, index) => {
     path = formData.data.contractProductList[index][att];
     path = formData.data.contractProductList[index][att];
   }
   }
   let a = document.createElement("a");
   let a = document.createElement("a");
-  a.href = "printer://" + "ftp://121.37.194.75/" + path + "/";
+  a.href = "printer://" + `ftp://${import.meta.env.VITE_APP_IP}/` + path + "/";
   a.style.display = "none";
   a.style.display = "none";
   document.body.appendChild(a);
   document.body.appendChild(a);
   a.click();
   a.click();

+ 1 - 1
vite.config.js

@@ -44,7 +44,7 @@ export default defineConfig(({
           // 后端本地
           // 后端本地
           // target: 'http://192.168.1.101:9898/',
           // target: 'http://192.168.1.101:9898/',
           // 正式地址
           // 正式地址
-          // target: "http://139.9.102.170:9900/prod-api",
+          // target: "http://175.178.26.5/prod-api",
           changeOrigin: true,
           changeOrigin: true,
           rewrite: (p) => p.replace(/^\/dev-api/, '')
           rewrite: (p) => p.replace(/^\/dev-api/, '')
         }
         }