Skip to content

Commit

Permalink
refactor: 模板下载文件名带上最新版本号
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 3155
  • Loading branch information
luofann committed Mar 1, 2024
1 parent 1c1bea9 commit 44f07ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
try {
pending.value = true;
const res = await getTemplateVersionsNameByIds(props.spaceId, [props.templateId]);
const { template_name, latest_signature } = res.details[0];
const { template_name, latest_signature, latest_revision_name } = res.details[0];
const content = await downloadTemplateContent(props.spaceId, props.templateSpaceId, latest_signature);
fileDownload(content, template_name);
fileDownload(content, `${template_name}_${latest_revision_name}`);
} catch (e) {
console.error(e);
} finally {
Expand Down

0 comments on commit 44f07ac

Please sign in to comment.