Skip to content

Commit

Permalink
refactor: 模板下载文件名带上最新版本号&特性开关配置key修改 (#2999)
Browse files Browse the repository at this point in the history
* refactor: 模板下载文件名带上最新版本号
# Reviewed, transaction id: 3155

* Merge branch 'master' into feat_template_download
, # Reviewed, transaction id: 3156

* refactor: 文件上传大小配置属性key修改
# Reviewed, transaction id: 3167
  • Loading branch information
luofann authored Mar 1, 2024
1 parent 45dc6df commit 77975d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
:editable="true"
:bk-biz-id="props.bkBizId"
:id="props.appId"
:file-size-limit="spaceFeatureFlags.RESOURCE_LIMIT.maxConfigItemSize"
:file-size-limit="spaceFeatureFlags.RESOURCE_LIMIT.maxFileSize"
@change="handleFormChange" />
<section class="action-btns">
<bk-button theme="primary" :loading="pending" :disabled="fileUploading" @click="handleSubmit">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
:editable="true"
:bk-biz-id="props.bkBizId"
:id="props.appId"
:file-size-limit="spaceFeatureFlags.RESOURCE_LIMIT.maxConfigItemSize"
:file-size-limit="spaceFeatureFlags.RESOURCE_LIMIT.maxFileSize"
@change="handleChange" />
</bk-loading>
<section class="action-btns">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,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 77975d0

Please sign in to comment.