更新
This commit is contained in:
@ -181,6 +181,7 @@ const downloadFile = async (item) => {
|
|||||||
// 并行下载所有文件
|
// 并行下载所有文件
|
||||||
const downloadPromises = dataList.map(async (fileData, index) => {
|
const downloadPromises = dataList.map(async (fileData, index) => {
|
||||||
try {
|
try {
|
||||||
|
// fileData.url = "http://47.108.232.77:9000/image/2025-01-06/081102a5418e4146beea277d18018e07.jpeg";
|
||||||
// 使用fetch获取文件内容
|
// 使用fetch获取文件内容
|
||||||
const downloadUrl = fileData.url.replace(/^https?:\/\/[^/]+/, '/zyminio');
|
const downloadUrl = fileData.url.replace(/^https?:\/\/[^/]+/, '/zyminio');
|
||||||
const response = await fetch(downloadUrl);
|
const response = await fetch(downloadUrl);
|
||||||
|
|||||||
Reference in New Issue
Block a user