QuKatie il y a 3 ans
Parent
commit
38e9d4ebd0
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      src/main.js

+ 1 - 2
src/main.js

@@ -241,12 +241,11 @@ Vue.directive("input-limit", {
 })
 Fingerprint2.get(function(components) {
   const values = components.map(function(component,index) {
-    if (index === 0) { //把微信浏览器里UA的wifi或4G等网络替换成空,不然切换网络会ID不一样
+    if (index === 0) { 
       return component.value.replace(/\bNetType\/\w+\b/, '')
     }
     return component.value
   })
-  console.log(values)
   // 生成最终id murmur   
   const murmur = Fingerprint2.x64hash128(values.join(''), 31)
   console.log(murmur)