shuzhan 4 hari lalu
induk
melakukan
76df75fa5a
1 mengubah file dengan 3 tambahan dan 4 penghapusan
  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 + "");
       }