fix(测试跟踪): 导出报文名称错误

This commit is contained in:
chenjianxing 2020-09-27 11:01:39 +08:00
parent 23867d8a39
commit 7addde0db2
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<ms-report-export-template :title="title" :type="$t('report.load_test_report')"> <ms-report-export-template :title="title" :type="$t('report.test_plan_report')">
<div v-for="(item, index) in previews" :key="item.id"> <div v-for="(item, index) in previews" :key="item.id">
<template-component :isReportView="true" :metric="metric" :preview="item" :index="index" ref="templateComponent"/> <template-component :isReportView="true" :metric="metric" :preview="item" :index="index" ref="templateComponent"/>
</div> </div>

View File

@ -255,7 +255,7 @@ export function exportPdf(name, canvasList) {
} }
} }
pdf.save(name + '.pdf'); pdf.save(name.replace(" ", "_") + '.pdf');
} }