From 19b390820325e1fbe0bc1449ef036d2e1451fa11 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 6 Sep 2019 17:27:31 +0800 Subject: [PATCH] window.encodeURIComponent() --- public/react/src/App.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/react/src/App.js b/public/react/src/App.js index 5a29dca6d..f0c0fac5d 100644 --- a/public/react/src/App.js +++ b/public/react/src/App.js @@ -297,8 +297,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;