jufubao-admin-library 1.1.142 → 1.1.144
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.
|
@@ -332,13 +332,20 @@ export default {
|
|
|
332
332
|
download_url = res.data['download_url']
|
|
333
333
|
}
|
|
334
334
|
// #endif
|
|
335
|
-
let fileName = '';
|
|
336
|
-
if(file_name && file_ext) fileName = `${file_name}.${file_ext}`;
|
|
337
|
-
let download = document.getElementById('download-url');
|
|
338
|
-
download.src = download_url
|
|
339
335
|
|
|
340
|
-
|
|
336
|
+
alert(window.navigator.userAgent);
|
|
337
|
+
if(window.navigator.userAgent.indexOf('baidu') !== -1) {
|
|
338
|
+
window.location.href = download_url;
|
|
339
|
+
loading.close()
|
|
340
|
+
return
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
if(download_url) {
|
|
344
|
+
let download = document.getElementById('download-url');
|
|
345
|
+
download.src = download_url
|
|
346
|
+
}
|
|
341
347
|
loading.close()
|
|
348
|
+
|
|
342
349
|
}).catch(err=>{
|
|
343
350
|
loading.close()
|
|
344
351
|
})
|