Parcourir la source

下载地址取值调整

曹冬冬 il y a 5 ans
Parent
commit
68211c6bb5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/views/myHistoryTest/myHistoryTest.js

+ 1 - 1
src/views/myHistoryTest/myHistoryTest.js

@@ -157,7 +157,7 @@ export default {
           this.$message.success("下载成功");
           var tempLink = document.createElement("a");
           tempLink.style.display = "none";
-          tempLink.href = res.data.single;
+          tempLink.href = res.single;
           tempLink.setAttribute("download", "用户来源导出表");
           if (typeof tempLink.download === "undefined") {
             tempLink.setAttribute("target", "_blank");