Explorar el Código

修改上传BOM的接口

695593266@qq.com hace 11 meses
padre
commit
da06ad617b
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 2 2
      src/api/system/file/index.js
  2. 2 2
      vue.config.js

+ 2 - 2
src/api/system/file/index.js

@@ -116,14 +116,14 @@ export async function downLoadFiexs() {
 
 export async function downLoadBom() {
   const res = await request.post(
-    '/main/user/downLoadTemplate',
+    '/main/bomCategory/downLoadTemplate',
     {},
     {
       responseType: 'blob'
     }
   );
   console.log(res.data, '***********');
-  download(res.data, 'BOM导入模板.xlsx');
+  download(res.data, 'BOM导入模板.xls');
 }
 
 /**

+ 2 - 2
vue.config.js

@@ -32,11 +32,11 @@ module.exports = {
     proxy: {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
-        target: 'http://192.168.1.105:18086',
+        // target: 'http://192.168.1.105:18086',
         // target: 'http://192.168.1.158:18086',
         // target: 'http://192.168.1.176:18086',
         // target: 'http://192.168.1.251:18086',
-
+        target: 'http://192.168.1.125:18086',
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {
           '^/api': ''