Browse Source

不做角色跳转限制,同一跳转我的日历

cxmo 1 year ago
parent
commit
d25758312e
1 changed files with 1 additions and 19 deletions
  1. 1 19
      src/views/Login.vue

+ 1 - 19
src/views/Login.vue

@@ -469,25 +469,7 @@ export default {
 		},
 		//根据角色判断应该进入系统的哪个页面,进入系统
 		async loginSys(res){
-			let path = ''
-			switch (res.Data.RoleTypeCode) {
-				case "rai_researcher":
-				case "ficc_researcher":
-				case "researcher":
-					path = "/reportlist";
-					break;
-				case "compliance": //合规
-					path = "/contractapprovallist";
-					break;
-				case "special_researcher": //特邀研究员
-					path = "/dataList";
-					break;
-				case "special_ficc_seller":
-					path = "/meetingCalendar";
-					break;
-				default:
-					path = await this.getOtherRolePath("myCalendar");
-			}
+			let path = await this.getOtherRolePath('myCalendar');
 			path&&this.$router.push({ path });
 			this.loading = false
 			this.checkLogining = false