jufubao-admin-library 1.1.144 → 1.1.146

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,8 +333,12 @@ export default {
333
333
  }
334
334
  // #endif
335
335
 
336
- alert(window.navigator.userAgent);
337
- if(window.navigator.userAgent.indexOf('baidu') !== -1) {
336
+ if(window.location.href.indexOf('UA=1') !== -1) {
337
+ alert(window.navigator.userAgent);
338
+ }
339
+ let userAgent = window.navigator.userAgent;
340
+ let reg = /^.+(baidu|UCBrowser)/i;
341
+ if(reg.test(userAgent)) {
338
342
  window.location.href = download_url;
339
343
  loading.close()
340
344
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.144",
3
+ "version": "1.1.146",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {