jufubao-admin-library 1.1.147 → 1.1.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -386,6 +386,16 @@ export default {
386
386
  alert(userAgent);
387
387
  }
388
388
 
389
+ let filename = `${file_name}.${file_ext}`;
390
+ const link = document.createElement('a');
391
+ link.href = download_url;
392
+ link.download = filename;
393
+ document.body.appendChild(link);
394
+ link.click();
395
+ document.body.removeChild(link);
396
+ loading.close();
397
+ return
398
+
389
399
  //pdf下载
390
400
  if(/^.+(\.pdf)$/.test(download_url.split('?')[0])){
391
401
  this.downLoadPdf(download_url,file_name,file_ext,loading);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.147",
3
+ "version": "1.1.148",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {