| | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getTenant(); |
| | | // this.getTenant(); |
| | | }, |
| | | mounted() { |
| | | //在mounted获取首页下拉菜单数据 |
| | | this.$axios.get('/api/blade-system/tenant/tenant-map').then(res=>{ |
| | | /*this.$axios.get('/api/blade-system/tenant/tenant-map').then(res=>{ |
| | | if(res.data.code == 200){ |
| | | this.loginForm.region=res.data.data |
| | | } |
| | | }) |
| | | })*/ |
| | | }, |
| | | watch: { |
| | | 'loginForm.deptId'() { |
| | |
| | | }); |
| | | this.$store.dispatch("LoginByUsername", this.loginForm).then(() => { |
| | | if (this.website.switchMode) { |
| | | const deptId = this.userInfo.dept_id; |
| | | const roleId = this.userInfo.role_id; |
| | | const deptId = this.userInfo.deptOid; |
| | | const roleId = this.userInfo.userOid; |
| | | if (deptId.includes(",") || roleId.includes(",")) { |
| | | this.loginForm.deptId = deptId; |
| | | this.loginForm.roleId = roleId; |