From b7cd926bdaf3a1ecd71e9371d95e1569265b7be6 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 6 Sep 2019 17:28:26 +0800 Subject: [PATCH] currentUrl --- public/react/src/App.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/react/src/App.js b/public/react/src/App.js index e8184b7f2..af9e33bd6 100644 --- a/public/react/src/App.js +++ b/public/react/src/App.js @@ -286,8 +286,9 @@ class App extends Component { const wx = window.wx const url = '/wechats/js_sdk_signature.json' const currentUrl = window.location.href.split('#')[0] + // window.encodeURIComponent() axios.post(url, { - url: window.__testUrl || window.encodeURIComponent(currentUrl), + url: window.__testUrl || currentUrl, }).then((response) => { console.log('got res') const data = response.data; @@ -295,7 +296,7 @@ class App extends Component { debug: false, appId: data.appid, timestamp: data.timestamp, - nonceStr: data.nonceStr, + nonceStr: data.noncestr, signature: data.signature, jsApiList: [ 'onMenuShareTimeline',//