lsc vor 1 Woche
Ursprung
Commit
168c60453b
3 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 2 2
      src/mixins/mixin.js
  2. 1 1
      src/store/modules/user.js
  3. 3 3
      src/views/login/loginPage.vue

+ 2 - 2
src/mixins/mixin.js

@@ -7,8 +7,8 @@ export const myMixin = {
       return Object.keys(this.userinfo).length != 0 ? this.userinfo : this.userJson
     },
     prefixL(){
-        let liyuan = window.top.U.UF.UI.form.allForm.U_MD_HomeC_Pop.header.baseURI.includes("liyuan")
-        let liyuan2 = window.top.U.UF.UI.form.allForm.U_MD_HomeC_Pop.header.baseURI.includes("lyxx")
+        let liyuan = window.topU.U.UF.UI.form.allForm.U_MD_HomeC_Pop.header.baseURI.includes("liyuan")
+        let liyuan2 = window.topU.U.UF.UI.form.allForm.U_MD_HomeC_Pop.header.baseURI.includes("lyxx")
         let newArr = ''
         if (liyuan || liyuan2) {
           newArr = "liyuan_"

+ 1 - 1
src/store/modules/user.js

@@ -88,7 +88,7 @@ const mutations = {
 const actions = {
   login({ commit }) { //, dispatch
     return new Promise((resolve, reject) => {
-      let loginType = window.topU ? window.topU.U.UF.Cookie.get("cocoroboLoginType") : window.top.U.UF.Cookie.get("cocoroboLoginType");
+      let loginType = window.topU ? window.topU.U.UF.Cookie.get("cocoroboLoginType") : window.parent.U.UF.Cookie.get("cocoroboLoginType");
       if(loginType != 1){
         eduGet()
           .then((response) => {

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

@@ -370,7 +370,7 @@ export default {
 							window.localStorage["identity"] = JSON.stringify(_data.identity);
 							this.$message.success("登录成功");
 							window.topU.U.UF.Cookie.set("cocoroboLoginType=2");
-							window.topU ? window.topU.US.userInfo = _data : window.top.US.userInfo = _data
+							window.topU ? window.topU.US.userInfo = _data : window.parent.US.userInfo = _data
 							await this.login();
 							if (
 								userjson.data[0][0].type == 1 &&
@@ -440,7 +440,7 @@ export default {
 							window.localStorage["identity"] = JSON.stringify(_data.identity);
 							this.$message.success("绑定成功");
 							window.topU.U.UF.Cookie.set("cocoroboLoginType=2");
-							window.topU ? window.topU.US.userInfo = _data : window.top.US.userInfo = _data
+							window.topU ? window.topU.US.userInfo = _data : window.parent.US.userInfo = _data
 							await this.login();
 							if (
 								userjson.data[0][0].type == 1 &&
@@ -681,7 +681,7 @@ export default {
 						window.localStorage["identity"] = JSON.stringify(_data.identity);
 						this.$message.success("登录成功");
 						window.topU.U.UF.Cookie.set("cocoroboLoginType=2");
-						window.topU ? window.topU.US.userInfo = _data : window.top.US.userInfo = _data
+						window.topU ? window.topU.US.userInfo = _data : window.parent.US.userInfo = _data
 						await this.login();
 						if (
 							userjson.data[0][0].type == 1 &&