Преглед на файлове

登录获取机构信息

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) {