style: 备份文件下载名

This commit is contained in:
TsMask
2023-10-25 17:37:29 +08:00
parent 77d648edba
commit daa74f148c

View File

@@ -149,7 +149,7 @@ function fnDownloadFile(row: Record<string, any>) {
key, key,
duration: 2, duration: 2,
}); });
saveAs(res.data, `${row.file_name}`); saveAs(res.data, `${row.fileName}`);
} else { } else {
message.error({ message.error({
content: `${res.msg}`, content: `${res.msg}`,
@@ -359,10 +359,10 @@ onMounted(() => {
<!-- 插槽-卡片左侧侧 --> <!-- 插槽-卡片左侧侧 -->
<template #title> <template #title>
<a-space :size="8" align="center"> <a-space :size="8" align="center">
<a-button type="primary" @click.prevent="fnModalVisibleByEdit()"> <!-- <a-button type="primary" @click.prevent="fnModalVisibleByEdit()">
<template #icon><FieldTimeOutlined /></template> <template #icon><FieldTimeOutlined /></template>
{{ t('views.configManage.backupManage.setBackupTask') }} {{ t('views.configManage.backupManage.setBackupTask') }}
</a-button> </a-button> -->
</a-space> </a-space>
</template> </template>