浏览代码

getWxConfig优化

xiuli.gao 2 年之前
父节点
当前提交
e72ff311f9
共有 3 个文件被更改,包括 6 次插入6 次删除
  1. 1 1
      qwh5/dist/index.html
  2. 1 1
      qwh5/dist/js/app.0a507754.js
  3. 4 4
      qwh5/src/utils/getWxConfig.ts

文件差异内容过多而无法显示
+ 1 - 1
qwh5/dist/index.html


文件差异内容过多而无法显示
+ 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