|
|
|
@ -207,14 +207,14 @@ class CoursesNew extends Component {
|
|
|
|
|
// this.goback()
|
|
|
|
|
|
|
|
|
|
window.location.href=first_category_url;
|
|
|
|
|
var yslGuideone = window.sessionStorage.getItem('yslGuideone');
|
|
|
|
|
var yslGuideone = window.localStorage.getItem('yslGuideone');
|
|
|
|
|
try {
|
|
|
|
|
if(yslGuideone=== null){
|
|
|
|
|
window.sessionStorage.setItem('yslGuideone', "true");
|
|
|
|
|
window.localStorage.setItem('yslGuideone', "true");
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if(yslGuideone=== undefined){
|
|
|
|
|
window.sessionStorage.setItem('yslGuideone', "true");
|
|
|
|
|
window.localStorage.setItem('yslGuideone', "true");
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
@ -265,14 +265,14 @@ class CoursesNew extends Component {
|
|
|
|
|
if (response.status === 200) {
|
|
|
|
|
// this.goback
|
|
|
|
|
window.location.href=response.data.first_category_url;
|
|
|
|
|
var yslGuideone = window.sessionStorage.getItem('yslGuideone');
|
|
|
|
|
var yslGuideone = window.localStorage.getItem('yslGuideone');
|
|
|
|
|
try {
|
|
|
|
|
if(yslGuideone=== null){
|
|
|
|
|
window.sessionStorage.setItem('yslGuideone', "true");
|
|
|
|
|
window.localStorage.setItem('yslGuideone', "true");
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if(yslGuideone=== undefined){
|
|
|
|
|
window.sessionStorage.setItem('yslGuideone', "true");
|
|
|
|
|
window.localStorage.setItem('yslGuideone', "true");
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|