|
@@ -814,7 +814,8 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
if(this.userInfo.userId && this.userInfo.userId==this.userId){
|
|
if(this.userInfo.userId && this.userInfo.userId==this.userId){
|
|
|
window.localStorage.setItem('showDialog',JSON.stringify({type:2,time:new Date().getTime()}))
|
|
window.localStorage.setItem('showDialog',JSON.stringify({type:2,time:new Date().getTime()}))
|
|
|
- return this.$router.push('/pocAiClassroom')
|
|
|
|
|
|
|
+ if(this.$route.name=='pocStartIndex')this.$router.push('/pocAiClassroom');
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
if (!this.showOpeningRemarks) return;
|
|
if (!this.showOpeningRemarks) return;
|
|
|
this.showOpeningRemarks = false;
|
|
this.showOpeningRemarks = false;
|
|
@@ -959,12 +960,12 @@ export default {
|
|
|
this.userInfo.phone = "";
|
|
this.userInfo.phone = "";
|
|
|
this.userInfo.birthday = "";
|
|
this.userInfo.birthday = "";
|
|
|
window.localStorage.setItem('firstEnter',1)
|
|
window.localStorage.setItem('firstEnter',1)
|
|
|
- window.localStorage.setItem('userInfo', JSON.stringify(this.userInfo));
|
|
|
|
|
|
|
+ window.localStorage.setItem('pocUserInfo', JSON.stringify(this.userInfo));
|
|
|
|
|
|
|
|
this.$router.push('/pocAiClassroom')
|
|
this.$router.push('/pocAiClassroom')
|
|
|
},
|
|
},
|
|
|
getUserInfoData(){
|
|
getUserInfoData(){
|
|
|
- let data = window.localStorage.getItem('userInfo');
|
|
|
|
|
|
|
+ let data = window.localStorage.getItem('pocUserInfo');
|
|
|
if(data){
|
|
if(data){
|
|
|
data = JSON.parse(data);
|
|
data = JSON.parse(data);
|
|
|
if(data.userId==this.userId){
|
|
if(data.userId==this.userId){
|