jufubao-admin-library 1.1.143 → 1.1.145
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.
|
@@ -333,12 +333,21 @@ export default {
|
|
|
333
333
|
}
|
|
334
334
|
// #endif
|
|
335
335
|
|
|
336
|
+
alert(window.navigator.userAgent);
|
|
337
|
+
let userAgent = window.navigator.userAgent;
|
|
338
|
+
let reg = /^.+(baidu|UCBrowser)/i;
|
|
339
|
+
if(reg.test(userAgent)) {
|
|
340
|
+
window.location.href = download_url;
|
|
341
|
+
loading.close()
|
|
342
|
+
return
|
|
343
|
+
}
|
|
344
|
+
|
|
336
345
|
if(download_url) {
|
|
337
346
|
let download = document.getElementById('download-url');
|
|
338
347
|
download.src = download_url
|
|
339
348
|
}
|
|
340
|
-
|
|
341
349
|
loading.close()
|
|
350
|
+
|
|
342
351
|
}).catch(err=>{
|
|
343
352
|
loading.close()
|
|
344
353
|
})
|