From 9ea47d86e12853456eda85644f8980a9ede3f3ed Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 6 Sep 2019 17:07:48 +0800 Subject: [PATCH 1/3] window.encodeURIComponent --- public/react/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/App.js b/public/react/src/App.js index 914ff4d60..747476995 100644 --- a/public/react/src/App.js +++ b/public/react/src/App.js @@ -298,7 +298,7 @@ class App extends Component { const url = '/wechats/js_sdk_signature.json' const currentUrl = window.location.href.split('#')[0] axios.post(url, { - url: currentUrl, + url: window.encodeURIComponent(currentUrl), }).then((response) => { console.log('got res') const data = response.data; From 9cf00437fb50a0e86e548c88bfcfd36d67558236 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 6 Sep 2019 17:07:59 +0800 Subject: [PATCH 2/3] Revert "window.encodeURIComponent" This reverts commit 9ea47d86e12853456eda85644f8980a9ede3f3ed. --- public/react/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/App.js b/public/react/src/App.js index 747476995..914ff4d60 100644 --- a/public/react/src/App.js +++ b/public/react/src/App.js @@ -298,7 +298,7 @@ class App extends Component { const url = '/wechats/js_sdk_signature.json' const currentUrl = window.location.href.split('#')[0] axios.post(url, { - url: window.encodeURIComponent(currentUrl), + url: currentUrl, }).then((response) => { console.log('got res') const data = response.data; From d0a18456231ef54cf9165787ff7316c2e51b34d3 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 6 Sep 2019 17:22:02 +0800 Subject: [PATCH 3/3] all --- public/react/src/modules/courses/busyWork/commonWork.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/busyWork/commonWork.js b/public/react/src/modules/courses/busyWork/commonWork.js index 20343c870..f8042d476 100644 --- a/public/react/src/modules/courses/busyWork/commonWork.js +++ b/public/react/src/modules/courses/busyWork/commonWork.js @@ -227,7 +227,7 @@ class commonWork extends Component{ } clearSelection = () => { - this.setState({ checkBoxValues: [] }) + this.setState({ checkBoxValues: [], checkAll: false }) } // onSetPublic = () => {