Commit f4f58597 by wangshuo

package 空字符串

parent c7207ccb
...@@ -45,10 +45,10 @@ class App extends Component { ...@@ -45,10 +45,10 @@ class App extends Component {
componentWillMount() { componentWillMount() {
let url = window.location.href; let url = window.location.href;
if(url.indexOf('ccode') > -1) { if(url.indexOf('ccode') > -1) {
if(decodeURIComponent(getParam('ccode')) != '') { if(!getParam('ccode').includes('%')) {
cookie.set('ccode', getParam('ccode'), { expires: 1, domain: '.julyedu.com', path: '/' }) cookie.set('ccode', getParam('ccode'), { expires: 1, domain: '.julyedu.com', path: '/' })
} }
} }
} }
componentDidMount() { componentDidMount() {
......
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