Kaynağa Gözat

getWxConfig优化

xiuli.gao 2 yıl önce
ebeveyn
işleme
e72ff311f9

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
qwh5/dist/index.html


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
qwh5/dist/js/app.0a507754.js


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

@@ -31,15 +31,15 @@ function getAuthInfo(cb?: any, redirect_url?: any) {
31 31
   }
32 32
 }
33 33
 
34
-function initEvent(authInfo: any, cb) {
34
+function initEvent(data, cb) {
35 35
   //在企业微信内部 并企业微信的版本号大约或等于3.0.24时,无须先调用wx.config,可直接wx.agentConfig.  
36 36
   //文档说明于 https://developer.work.weixin.qq.com/document/path/94313
37 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 40
   } else {
41 41
     alert('是')
42
-    initQYConfig(authInfo, cb);
42
+    initQYConfig(data, cb);
43 43
   }
44 44
 }
45 45