feat(中心页面): 补充设置身份
This commit is contained in:
parent
576186e02d
commit
3e78065dbd
@ -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() // 获取提现权限
|
||||
|
||||
@ -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() // 获取提现信息列表
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user