Browse Source

修改域名判断问题

11wqe1 1 week ago
parent
commit
4d2dac2018
2 changed files with 4 additions and 3 deletions
  1. 2 2
      src/mixins/mixin.js
  2. 2 1
      src/views/HomeView.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.location.href.includes("liyuan")
-        let liyuan2 = window.location.href.includes("lyxx")
+        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 newArr = ''
         if (liyuan || liyuan2) {
           newArr = "liyuan_"

+ 2 - 1
src/views/HomeView.vue

@@ -447,7 +447,8 @@ export default {
 		this.getPer();
 		if (
 			!this.roleUser.cclassid &&
-			!this.roleUser.rrole &&
+			(!this.roleUser.rrole &&
+			Object.keys(this.userinfo2).length == 0) &&
 			this.mergedList.includes(this.roleUser.org)
 		) {
 			this.editInfo();