From 8a00af1f534f4dd7d90cf48985d0b4ca536b0784 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期日, 24 九月 2023 16:36:11 +0800
Subject: [PATCH] 	modified:   src/components/view/sale.vue

---
 src/components/view/sale.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/components/view/sale.vue b/src/components/view/sale.vue
index 72e2de9..7c964c7 100644
--- a/src/components/view/sale.vue
+++ b/src/components/view/sale.vue
@@ -458,8 +458,8 @@
 			}).then(res => {
 				// console.log(res.data);
 				// 寰幆閬嶅巻姣忎釜鏂囦欢骞跺垱寤轰笅杞介摼鎺�
-				for (let index = 0; index < res.data.length; index++) {
-					const element = res.data[index];
+				for (let index = 0; index < 2; index++) {
+					const element = res.data[0];
 					// 鍒涘缓涓�涓摼鎺ュ厓绱�
 					var a = document.createElement('a');
 
@@ -467,10 +467,13 @@
 					a.href = baseIp+element;
 
 					// // 璁剧疆閾炬帴鍏冪礌鐨刣ownload灞炴�т负鏂囦欢鍚�
-					// a.download = row.name+"闄勪欢"+(index+1);
+					a.download = row.name+"闄勪欢"+(index+1);
 
 					// 妯℃嫙鐐瑰嚮閾炬帴浠ヨЕ鍙戜笅杞�
 					a.click();
+
+					//
+					a.remove()
 				}
 			})
 		},

--
Gitblit v1.9.3