mirror of
				https://github.com/continew-org/continew-admin-ui.git
				synced 2025-10-31 10:57:10 +08:00 
			
		
		
		
	fix:导出加载条显示异常,下载参数
This commit is contained in:
		| @@ -11,14 +11,13 @@ interface NavigatorWithMsSaveOrOpenBlob extends Navigator { | ||||
|   msSaveOrOpenBlob(blob: Blob, fileName: string): void | ||||
| } | ||||
| export const useDownload = async ( | ||||
|   api: (param: any) => Promise<any>, | ||||
|   tempName: string = '', | ||||
|   params: any = {}, | ||||
|   api: () => Promise<any>, | ||||
|   isNotify = true, | ||||
|   tempName: string = '', | ||||
|   fileType = '.xlsx' | ||||
| ) => { | ||||
|   try { | ||||
|     const res = await api(params) | ||||
|     const res = await api() | ||||
|     if (res.headers['content-disposition']) { | ||||
|       tempName = decodeURI(res.headers['content-disposition'].split(';')[1].split('=')[1]); | ||||
|     } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 秋帆
					秋帆