whx 11 ماه پیش
والد
کامیت
f2dd5bcbc7
1فایلهای تغییر یافته به همراه9 افزوده شده و 2 حذف شده
  1. 9 2
      virgo.wzfrontend/console/src/views/login/index.vue

+ 9 - 2
virgo.wzfrontend/console/src/views/login/index.vue

@@ -163,7 +163,15 @@
 								this.selectOrganized(organized);
 								this.$store.dispatch('app/changeOrganization', organized);
 								this.$store.dispatch('app/changeUser', user);
-								this.getUserProjectList(user.projectId);
+								if (user.userId === 1) {
+									this.selectProject({
+										projectId: user.projectId,
+										identityId: 6
+									});
+								} else {
+									this.getUserProjectList(user.projectId);
+								}
+
 							} else {
 								this.loginLoading = false;
 							}
@@ -209,7 +217,6 @@
 										}
 										let projectList = clientData.concat(organizationData, obj)
 											.sort((a, b) => a.projectId - b.projectId);
-										console.log(projectList);
 										if (projectList.length === 0) {
 											this.loginLoading = false;
 											this.$store.dispatch('app/changeMenuData', []);