吉安感知网项目-前端
shuishen
2026-01-23 7f0df5047691bd3ee0d5b494cababa5c2514b7fe
applications/task-work-order/src/store/modules/user.js
@@ -33,6 +33,7 @@
      token: getStore({ name: 'token' }) || '',
      refreshToken: getStore({ name: 'refreshToken' }) || '',
      parentDeptInfo: getStore({ name: 'parentDeptInfo' }) || '',
      xtToken: getStore({ name: 'xtToken' }) || '',
   },
   actions: {
      //根据用户名登录
@@ -297,6 +298,10 @@
      },
   },
   mutations: {
      setXtToken:(state,token) =>{
         state.xtToken = token
         setStore({ name: 'xtToken', content: token })
      },
      SET_PARENT_DEPT_INFO(state, deptId) {
         getParentDeptInfo({ deptId: deptId }).then(res => {
            const data = res.data.data