feat(中心页面): 补充设置身份

This commit is contained in:
hzj 2026-04-09 16:08:55 +08:00
parent 576186e02d
commit 3e78065dbd
2 changed files with 6 additions and 0 deletions

View File

@ -454,6 +454,7 @@ import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
import { getTeamId, getUserId } from '@/utils/userStore.js'
import { clearSelectedPayee } from '@/utils/payeeStore.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { useIdentityStore } from '@/stores/identity.js'
import { getTeamMemberCount, getTeamBill, getTeamMemberWork } from '@/api/teamBill.js'
import {
@ -469,6 +470,7 @@ import maskLayer from '@/components/MaskLayer.vue'
const { t, locale } = useI18n()
const router = useRouter()
const identityStore = useIdentityStore()
//
locale.value && setDocumentDirection(locale.value)
@ -827,6 +829,7 @@ const { userInfo, salaryInfo, taskInfo } = usePageInitializationWithConfig('AGEN
})
onMounted(() => {
identityStore.setIdentity('AGENCY')
getBankCards() // 使
getWithdrawInfoListData() //
getWithdrawEnabled() //

View File

@ -283,6 +283,7 @@ import { setDocumentDirection } from '@/locales/i18n'
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
import { getUserId } from '@/utils/userStore.js'
import { clearSelectedPayee } from '@/utils/payeeStore.js'
import { useIdentityStore } from '@/stores/identity.js'
import { getTeamMemberWork } from '@/api/teamBill.js'
import {
@ -301,6 +302,7 @@ import maskLayer from '@/components/MaskLayer.vue'
const { t, locale } = useI18n()
const router = useRouter()
const identityStore = useIdentityStore()
//
locale.value && setDocumentDirection(locale.value)
@ -507,6 +509,7 @@ const { appConnected, userInfo, salaryInfo, taskInfo, handleImageError, getAvata
})
onMounted(() => {
identityStore.setIdentity('HOST')
clearSelectedPayee() //
getBankCards() // 使
getWithdrawInfoListData() //