|
|
@@ -121,8 +121,10 @@
|
|
|
import { useDeptApi } from '/@/api/system/dept'
|
|
|
import { useExecutionApi } from '/@/api/execution'
|
|
|
import { useNewsApi } from '/@/api/system/news'
|
|
|
+ import { useUserApi } from '/@/api/system/user'
|
|
|
import { useTrainingApi } from '/@/api/training'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
+ import {useUserInfo} from '/@/stores/userInfo'
|
|
|
|
|
|
import { useUserInfos } from '/@/hooks/useUserInfos'
|
|
|
|
|
|
@@ -155,7 +157,7 @@
|
|
|
dictApi.getDictDataByType('sys_user_certificate'),
|
|
|
deptApi.getDeptTree(),
|
|
|
proApi.getProjectGroupListForApp({ noPage: true }),
|
|
|
- dictApi.getDictDataByType('sci_pjt_level')
|
|
|
+ dictApi.getDictDataByType('sci_pjt_level'),
|
|
|
]).then(([type, sex, cert, dept, pjt, pjtType]) => {
|
|
|
userTypeList.value = type.data.values || []
|
|
|
userSexList.value = sex.data.values || []
|
|
|
@@ -193,6 +195,11 @@
|
|
|
getApprovalList()
|
|
|
getNotice()
|
|
|
getTrainingList()
|
|
|
+ useUserInfo().setUserInfos()
|
|
|
+ useUserApi().updateUserWxInfo({
|
|
|
+ wechatOpenId: localStorage.getItem('openId'),
|
|
|
+ wechatUnionId: localStorage.getItem('unionId')
|
|
|
+ })
|
|
|
})
|
|
|
</script>
|
|
|
|