Explorar o código

下载地址取值调整

曹冬冬 %!s(int64=5) %!d(string=hai) anos
pai
achega
68211c6bb5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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");