From 0004101739100b9dc4d146e38f857cc1b89803b4 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 6 Sep 2019 17:27:48 +0800 Subject: [PATCH] Revert "window.encodeURIComponent()" This reverts commit 19b390820325e1fbe0bc1449ef036d2e1451fa11. --- public/react/src/App.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/react/src/App.js b/public/react/src/App.js index f0c0fac5d..5a29dca6d 100644 --- a/public/react/src/App.js +++ b/public/react/src/App.js @@ -297,9 +297,8 @@ 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 || currentUrl, + url: window.__testUrl || window.encodeURIComponent(currentUrl), }).then((response) => { console.log('got res') const data = response.data;