Bladeren bron

提交代码

Lijy 6 maanden geleden
bovenliggende
commit
0f5b852007
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      fhKeeper/formulahousekeeper/customerBuler-crm-h5/src/pages/tabbar/home/index.vue

+ 2 - 2
fhKeeper/formulahousekeeper/customerBuler-crm-h5/src/pages/tabbar/home/index.vue

@@ -90,7 +90,7 @@ function obtainEnterpriseWeChatParameters(data = {}) {
   const token = data.id
   const curUrl = window.location.href.split('#')[0]
   console.log(wx, '开始调用接口')
-  requests.post(`/wxcorp/getCorpWXConfig`, { url: curUrl, token }).then((res) => {
+  requests.post('/wxcorp/getCorpWXConfig', { url: curUrl, token }).then((res) => {
     console.log(res, '<====== 返回的参数 /wxcorp/getCorpWXConfig')
     wx.config({
       beta: true,
@@ -104,7 +104,7 @@ function obtainEnterpriseWeChatParameters(data = {}) {
 
     wx.ready(function () {
       // config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready函数中。
-      requests.post(`/wxcorp/getCorpWXAgentConfig`, { url: curUrl, token }).then((res) => {
+      requests.post('/wxcorp/getCorpWXAgentConfig', { url: curUrl, token }).then((res) => {
         console.log(res, '<====== 返回的参数 /wxcorp/getCorpWXAgentConfig')
         wx.agentConfig({
           corpid: res.data.corpid, // 必填,企业微信的corpid,必须与当前登录的企业一致