Przeglądaj źródła

登录获取机构信息

zhengnaiwen_citu 6 miesięcy temu
rodzic
commit
dd88dfc88e
1 zmienionych plików z 2 dodań i 1 usunięć
  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) {