Explorar el Código

getWxConfig优化

xiuli.gao %!s(int64=2) %!d(string=hace) años
padre
commit
e72ff311f9
Se han modificado 3 ficheros con 6 adiciones y 6 borrados
  1. 1 1
      qwh5/dist/index.html
  2. 1 1
      qwh5/dist/js/app.0a507754.js
  3. 4 4
      qwh5/src/utils/getWxConfig.ts

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1 - 1
qwh5/dist/index.html


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1 - 1
qwh5/dist/js/app.0a507754.js


+ 4 - 4
qwh5/src/utils/getWxConfig.ts

31
   }
31
   }
32
 }
32
 }
33
 
33
 
34
-function initEvent(authInfo: any, cb) {
34
+function initEvent(data, cb) {
35
   //在企业微信内部 并企业微信的版本号大约或等于3.0.24时,无须先调用wx.config,可直接wx.agentConfig.  
35
   //在企业微信内部 并企业微信的版本号大约或等于3.0.24时,无须先调用wx.config,可直接wx.agentConfig.  
36
   //文档说明于 https://developer.work.weixin.qq.com/document/path/94313
36
   //文档说明于 https://developer.work.weixin.qq.com/document/path/94313
37
   if (isWxwork() && isWxwork() != 'false' && compareVersion(isWxwork(), '3.0.24') != -1) {
37
   if (isWxwork() && isWxwork() != 'false' && compareVersion(isWxwork(), '3.0.24') != -1) {
38
-    alert('不')
39
-    initYYConfig(authInfo, cb);
38
+    alert('不' + JSON.stringify(data))
39
+    initYYConfig(data, cb);
40
   } else {
40
   } else {
41
     alert('是')
41
     alert('是')
42
-    initQYConfig(authInfo, cb);
42
+    initQYConfig(data, cb);
43
   }
43
   }
44
 }
44
 }
45
 
45