|
@@ -240,7 +240,7 @@ export default {
|
|
|
console.log("_overview", overview);
|
|
|
console.log("_process", process);
|
|
|
console.log("_results", results);
|
|
|
- this.generate(_html, { title: info.title, username: res.username });
|
|
|
+ this.generate(_html, { title: info.title, username: res.name });
|
|
|
},
|
|
|
async generate(a, data) {
|
|
|
// 将html文件中需要用到的数据挂载到store上
|
|
@@ -261,7 +261,7 @@ export default {
|
|
|
// debugger
|
|
|
// 生成报告
|
|
|
const link = document.createElement("a");
|
|
|
- let dname = data.title + "-" + data.username + ".html";
|
|
|
+ let dname = data.title + "-" + data.name + ".html";
|
|
|
// link.download = "报告.html"; // 文件名
|
|
|
link.download = dname; // 文件名
|
|
|
link.style.display = "none";
|