11wqe1 há 4 semanas atrás
pai
commit
e59b88aee5
1 ficheiros alterados com 7 adições e 7 exclusões
  1. 7 7
      src/views/login/loginPage.vue

+ 7 - 7
src/views/login/loginPage.vue

@@ -1029,15 +1029,15 @@ export default {
 					}
 				);
 
-				let userjson = await getUser({ userid: this.stuInfoCode.userid });
+				// let userjson = await getUser({ userid: this.stuInfoCode.userid });
 
 				console.log("this.stuInfoCode", this.stuInfoCode);
-				window.localStorage["identity"] = 0;
+				// window.localStorage["identity"] = 0;
 
-				window.topU.U.UF.Cookie.set("cocoroboLoginType=2");
-				window.topU
-					? (window.topU.US.userInfo = userjson)
-					: (window.parent.US.userInfo = userjson);
+				// window.topU.U.UF.Cookie.set("cocoroboLoginType=2");
+				// window.topU
+				// 	? (window.topU.US.userInfo = userjson)
+				// 	: (window.parent.US.userInfo = userjson);
 				window.topU.postMessage(
 					{
 						tools: "inviteLogin",
@@ -1049,7 +1049,7 @@ export default {
 
 				this.$message.success("登录成功");
 
-				this.$router.push({ path: "/", query: { courseId: this.courseId } });
+				this.$router.push({ path: this.redirect || "/", query: { courseId: this.courseId } });
 				sessionStorage.setItem("lytype", "courseDetail");
 
 				console.log('ok');