wy 1 year ago
parent
commit
146dfaf603
2 changed files with 4 additions and 6 deletions
  1. 2 2
      .env.development
  2. 2 4
      src/views/manage-log/data-export.vue

+ 2 - 2
.env.development

@@ -4,5 +4,5 @@ ENV = 'development'
 # base api
 # VUE_APP_BASE_API = 'http://zk.li-ai.com.cn:8080/api'
 # VUE_APP_BASE_API = 'https://53670u39m2.goho.co/api'
-VUE_APP_BASE_API = 'http://zk.li-ai.com.cn:8090/api'
-VUE_APP_WS = 'ws://zk.li-ai.com.cn:8090/ws'
+VUE_APP_BASE_API = "http://192.168.3.177:8080/api"
+VUE_APP_WS = 'ws://192.168.3.177:8080/ws/'

+ 2 - 4
src/views/manage-log/data-export.vue

@@ -333,9 +333,6 @@ export default {
       });
     },
     RecordFile(Fileurl, fileName) {
-      setTimeout(() => {
-        this.showTotip = false;
-      }, 7200000);
       //接口方法
       return request({
         url: Fileurl,
@@ -355,6 +352,7 @@ export default {
             new Blob([data], { type: "application/zip" }),
             fileName
           );
+        this.showTotip = false;
         } else {
           let url = window.URL.createObjectURL(
             new Blob([data], { type: "application/zip" })
@@ -367,8 +365,8 @@ export default {
           link.click();
           document.body.removeChild(link); //下载完成移除元素
           window.URL.revokeObjectURL(url); //释放掉blob对象
-        }
         this.showTotip = false;
+        }
       });
     },
   },