refactor(性能测试): 下载jtl名称改为报告名
This commit is contained in:
parent
5ca32674a2
commit
5cf1c4dcf7
|
@ -348,7 +348,7 @@ export default {
|
||||||
// 非IE下载
|
// 非IE下载
|
||||||
// chrome/firefox
|
// chrome/firefox
|
||||||
let aTag = document.createElement('a');
|
let aTag = document.createElement('a');
|
||||||
aTag.download = this.reportId + ".zip";
|
aTag.download = this.reportName + ".zip";
|
||||||
aTag.href = URL.createObjectURL(blob);
|
aTag.href = URL.createObjectURL(blob);
|
||||||
aTag.click();
|
aTag.click();
|
||||||
URL.revokeObjectURL(aTag.href);
|
URL.revokeObjectURL(aTag.href);
|
||||||
|
|
|
@ -312,7 +312,7 @@ export default {
|
||||||
// 非IE下载
|
// 非IE下载
|
||||||
// chrome/firefox
|
// chrome/firefox
|
||||||
let aTag = document.createElement('a');
|
let aTag = document.createElement('a');
|
||||||
aTag.download = this.reportId + ".jtl";
|
aTag.download = this.reportName + ".jtl";
|
||||||
aTag.href = URL.createObjectURL(blob);
|
aTag.href = URL.createObjectURL(blob);
|
||||||
aTag.click();
|
aTag.click();
|
||||||
URL.revokeObjectURL(aTag.href)
|
URL.revokeObjectURL(aTag.href)
|
||||||
|
|
Loading…
Reference in New Issue