push Develop
This commit is contained in:
@@ -474,7 +474,12 @@ export default defineComponent({
|
||||
setCookie("isBeginner", isBeginner);
|
||||
setCookie("isBeginnerNum", 0);//从第一步开始,机器人开始的话就是从第二部开始
|
||||
setCookie("userInfo", JSON.stringify(rv));
|
||||
this.turnToHomePage();
|
||||
this.store.commit("setSystemUser", rv.systemUser)
|
||||
if(rv.systemUser == 0){
|
||||
this.turnToHomePage('/');
|
||||
}else{
|
||||
this.turnToHomePage('/home');
|
||||
}
|
||||
sessionStorage.setItem('isTimeOne', JSON.stringify(false));//是否需要公告 提示 弹窗
|
||||
let randomNum:any = Math.floor(Math.random() * 9000000000000000) + 1000000000000000;
|
||||
sessionStorage.setItem('sessionId', randomNum);
|
||||
@@ -522,7 +527,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
//跳转到首页
|
||||
turnToHomePage() {
|
||||
turnToHomePage(str:any) {
|
||||
this.getLang()
|
||||
// this.$router.push("/home");
|
||||
// console.log(window.location.search.substring(1));
|
||||
@@ -530,7 +535,7 @@ export default defineComponent({
|
||||
this.store.commit("clearAllCollection");
|
||||
this.store.commit("setAllBoardDataChoose",{});
|
||||
this.store.commit("clearShowSketchboard",{});
|
||||
this.$router.push("/home");
|
||||
this.$router.push(str);
|
||||
},
|
||||
//获取当前语言
|
||||
getLang(){
|
||||
|
||||
Reference in New Issue
Block a user