소스 검색

登录获取机构信息

zhengnaiwen_citu 6 달 전
부모
커밋
dd88dfc88e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/login/index.vue

+ 2 - 1
src/views/login/index.vue

@@ -88,7 +88,8 @@ export default {
             query: this.query
           })
           await this.$store.dispatch('user/login', query)
-          await this.$store.dispatch('user/getEmployee')
+          await this.$store.dispatch('user/getEmployee') // 获取绑定员工信息
+          await this.$store.dispatch('system/getOrganizationTree') // 获取机构信息
           this.$router.push('/')
         } catch (error) {
           if (typeof error === 'object' && error?.code) {