Commit 80d0e654 by zhujian

fix

parent 8f4bfef9
...@@ -19,7 +19,7 @@ export default class WechatApi { ...@@ -19,7 +19,7 @@ export default class WechatApi {
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
Service.Hades('anon/hades/getWxCorpJSAPISignature', { Service.Hades('anon/hades/getWxCorpJSAPISignature', {
storeId: User.getStoreId(), storeId: User.getStoreId(),
url:location.href.split('#')[0], url:window.location.href.split('#')[0],
}).then((result) => { }).then((result) => {
const res = result.result; const res = result.result;
wx.config({ wx.config({
...@@ -39,7 +39,7 @@ export default class WechatApi { ...@@ -39,7 +39,7 @@ export default class WechatApi {
console.log('微信注册成功') console.log('微信注册成功')
Service.Hades('anon/hades/getWxWorkJSAPISignature', { Service.Hades('anon/hades/getWxWorkJSAPISignature', {
storeId: User.getStoreId(), storeId: User.getStoreId(),
url: location.href.split('#')[0], url: window.location.href.split('#')[0],
}).then((result2) => { }).then((result2) => {
const res2 = result2.result; const res2 = result2.result;
console.log('开始注册agent') console.log('开始注册agent')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment