From cd6e52e4fc2e9beec99650ac67677e7051ee47a3 Mon Sep 17 00:00:00 2001
From: lzhe <181968431@qq.com>
Date: 星期日, 27 七月 2025 00:18:32 +0800
Subject: [PATCH] 1
---
src/views/flowmgr/programexport.vue | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/views/flowmgr/programexport.vue b/src/views/flowmgr/programexport.vue
index dee983b..dfc6062 100644
--- a/src/views/flowmgr/programexport.vue
+++ b/src/views/flowmgr/programexport.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2025-06-20 20:48:17
* @LastEditors: gaoshp
- * @LastEditTime: 2025-07-07 23:00:25
+ * @LastEditTime: 2025-07-08 20:46:33
* @FilePath: /mdmweb/src/views/flowmgr/programexport.vue
-->
<template>
@@ -177,8 +177,9 @@
{},
{ids: this.selection.map(item => item.id)},
).then(res => {
- console.log(res);
- downloadFile(res.data, `瀵煎嚭DNC${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.zip`);
+ let name = res.headers['content-disposition'].split('filename=')[1]
+ console.log(res.headers['content-disposition'].split('filename=')[1]);
+ downloadFile(res.data, `瀵煎嚭DNC-${name}`);
NProgress.done();
});
});
--
Gitblit v1.9.3