|
|
|
@ -46,26 +46,22 @@ const App = (props) => {
|
|
|
|
|
// 获取路径参数
|
|
|
|
|
const _params = window.location.search;
|
|
|
|
|
const setCookier = () => {
|
|
|
|
|
// var u = navigator.userAgent;
|
|
|
|
|
// var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
|
|
|
|
|
// if (isIOS) {
|
|
|
|
|
// }else{
|
|
|
|
|
// if (_params) {
|
|
|
|
|
// let _cookie = '';
|
|
|
|
|
// let _search = _params.split('?')[1];
|
|
|
|
|
// if(_search.split('=')) {
|
|
|
|
|
// _cookie = _search.split('=')[1];
|
|
|
|
|
// cookie.save('_educoder_session', _cookie);
|
|
|
|
|
// }
|
|
|
|
|
// _search.split('&').forEach(item => {
|
|
|
|
|
// const _arr = item.split('=');
|
|
|
|
|
// cookie.save(_arr[0], _arr[1], {
|
|
|
|
|
// path: '/',
|
|
|
|
|
// domain: '.educoder.net'
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
const _params = window.location.search;
|
|
|
|
|
if (_params) {
|
|
|
|
|
let _search = _params.split('?')[1];
|
|
|
|
|
_search.split('&').forEach(item => {
|
|
|
|
|
// console.log(item);
|
|
|
|
|
const _arr = item.split('=');
|
|
|
|
|
cookie.remove(_arr[0], {
|
|
|
|
|
path: '/',
|
|
|
|
|
domain: '.educoder.net'
|
|
|
|
|
});
|
|
|
|
|
cookie.save(_arr[0], _arr[1], {
|
|
|
|
|
path: '/',
|
|
|
|
|
domain: '.educoder.net'
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setCookier();
|
|
|
|
|