Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
boyueCEnd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
游洁
boyueCEnd
Commits
97df7b02
Commit
97df7b02
authored
Dec 01, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
86f65c4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
user.ts
src/stores/user.ts
+2
-6
LeftView.vue
src/views/personalCenter/components/LeftView.vue
+0
-1
account.vue
...views/personalCenter/components/accountCenter/account.vue
+0
-1
No files found.
src/stores/user.ts
View file @
97df7b02
...
@@ -73,6 +73,7 @@ export const useUserStore = defineStore('user', {
...
@@ -73,6 +73,7 @@ export const useUserStore = defineStore('user', {
// 更新多个字段
// 更新多个字段
updateProfile
(
fields
:
Partial
<
typeof
this
.
personalInfor
>
)
{
updateProfile
(
fields
:
Partial
<
typeof
this
.
personalInfor
>
)
{
this
.
personalInfor
=
{
...
this
.
personalInfor
,
...
fields
}
this
.
personalInfor
=
{
...
this
.
personalInfor
,
...
fields
}
this
.
memberData
.
photo
=
fields
.
photo
||
this
.
memberData
.
photo
},
},
/**
/**
* 设置email
* 设置email
...
@@ -88,12 +89,7 @@ export const useUserStore = defineStore('user', {
...
@@ -88,12 +89,7 @@ export const useUserStore = defineStore('user', {
setPhoto
(
photo
:
string
){
setPhoto
(
photo
:
string
){
this
.
memberData
.
photo
=
photo
this
.
memberData
.
photo
=
photo
},
},
setPersonalInfor
(
personalInfor
:
any
){
/** 当前登录类型 */
this
.
personalInfor
=
{
...
this
.
personalInfor
,
...
personalInfor
,
}
},
setLoginType
(
loginType
:
number
){
setLoginType
(
loginType
:
number
){
this
.
loginType
=
loginType
this
.
loginType
=
loginType
},
},
...
...
src/views/personalCenter/components/LeftView.vue
View file @
97df7b02
...
@@ -139,7 +139,6 @@ const goPage = (path:string) => {
...
@@ -139,7 +139,6 @@ const goPage = (path:string) => {
const
getPersonalInfor
=
async
()
=>
{
const
getPersonalInfor
=
async
()
=>
{
const
response
=
await
UserService
.
memberCenterAsync
(
tenantId
.
value
)
const
response
=
await
UserService
.
memberCenterAsync
(
tenantId
.
value
)
// userStore.setPersonalInfor(response)
userStore
.
updateProfile
(
response
)
userStore
.
updateProfile
(
response
)
}
}
getPersonalInfor
()
getPersonalInfor
()
...
...
src/views/personalCenter/components/accountCenter/account.vue
View file @
97df7b02
...
@@ -232,7 +232,6 @@ const unBindWeChatAccount = async (type: number) => {
...
@@ -232,7 +232,6 @@ const unBindWeChatAccount = async (type: number) => {
const
getPersonalInfor
=
async
()
=>
{
const
getPersonalInfor
=
async
()
=>
{
const
response
=
await
UserService
.
memberCenterAsync
(
systemConfig
.
tenantId
)
const
response
=
await
UserService
.
memberCenterAsync
(
systemConfig
.
tenantId
)
// userStore.setPersonalInfor(response)
userStore
.
updateProfile
(
response
)
userStore
.
updateProfile
(
response
)
}
}
// 获取微信绑定AppID 域名 重定向页面
// 获取微信绑定AppID 域名 重定向页面
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment