config:fail,Error: invalid signature

与此同时出现的error:

getlocation:the permission value is offline verifying

 fetch(httpConfig.signature, {// signature:domain+'/wechat/jssdk/signature?url=***.com',
    method: 'GET'
  }).then(res => {
  callback(res);
  })

参与wx.config的url必须是动态生成的,如下:

httpConfig.signature+ window.location.href.split("#")[0]

你可能感兴趣的:(前端杂事)