shuzhan 4 days ago
parent
commit
76df75fa5a
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/views/charging/joinActivity-list.vue

+ 3 - 4
src/views/charging/joinActivity-list.vue

@@ -674,6 +674,9 @@ export default {
       this.fileList = [];
 
       if (response.result) {
+        if (document.location.href.startsWith("https://")) {
+          response.data = response.data.replace("http://", "https://");
+        }
         //导出
         this.$message({
           showClose: true,
@@ -686,10 +689,6 @@ export default {
         this.importDayStatVisible = false;
 
         this.changePage(1);
-
-        if (document.location.href.startsWith("https://")) {
-          response.data = response.data.replace("http://", "https://");
-        }
       } else {
         this.$message.warning(response.message + "");
       }