Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
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
poc
poc-fe
Commits
242984fe
Commit
242984fe
authored
Nov 12, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: web端用户初始化默认信息
parent
d50fcdd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
user.ts
src/store/modules/user.ts
+1
-1
share-application-web.vue
src/views/share/share-application-web.vue
+2
-7
No files found.
src/store/modules/user.ts
View file @
242984fe
...
@@ -3,7 +3,7 @@ import { ss } from '@/utils/storage'
...
@@ -3,7 +3,7 @@ import { ss } from '@/utils/storage'
import
{
type
UserState
,
type
UserInfo
,
UserStoreStorageKeyEnum
}
from
'../types/user'
import
{
type
UserState
,
type
UserInfo
,
UserStoreStorageKeyEnum
}
from
'../types/user'
import
{
fetchUserDetailInfo
}
from
'@/apis/user'
import
{
fetchUserDetailInfo
}
from
'@/apis/user'
function
createDefaultUserInfoFactory
():
UserInfo
{
export
function
createDefaultUserInfoFactory
():
UserInfo
{
return
{
return
{
memberId
:
null
,
memberId
:
null
,
avatarUrl
:
''
,
avatarUrl
:
''
,
...
...
src/views/share/share-application-web.vue
View file @
242984fe
...
@@ -9,7 +9,7 @@ import FooterInput from './components/footer-input.vue'
...
@@ -9,7 +9,7 @@ import FooterInput from './components/footer-input.vue'
import
{
fetchCreateContinueQuestions
,
fetchCreateDialogues
,
fetchGetApplicationInfo
}
from
'@/apis/agent-application'
import
{
fetchCreateContinueQuestions
,
fetchCreateDialogues
,
fetchGetApplicationInfo
}
from
'@/apis/agent-application'
import
{
PersonalAppConfigState
}
from
'@/store/types/personal-app-config'
import
{
PersonalAppConfigState
}
from
'@/store/types/personal-app-config'
import
{
defaultPersonalAppConfigState
}
from
'@/store/modules/personal-app-config'
import
{
defaultPersonalAppConfigState
}
from
'@/store/modules/personal-app-config'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
createDefaultUserInfoFactory
,
useUserStore
}
from
'@/store/modules/user'
import
{
useLayoutConfig
}
from
'@/composables/useLayoutConfig'
import
{
useLayoutConfig
}
from
'@/composables/useLayoutConfig'
import
{
fetchGetMemberInfoById
}
from
'@/apis/user'
import
{
fetchGetMemberInfoById
}
from
'@/apis/user'
import
{
UserInfo
}
from
'@/store/types/user'
import
{
UserInfo
}
from
'@/store/types/user'
...
@@ -25,12 +25,7 @@ const { isMobile } = useLayoutConfig()
...
@@ -25,12 +25,7 @@ const { isMobile } = useLayoutConfig()
const
fullScreenLoading
=
ref
(
false
)
const
fullScreenLoading
=
ref
(
false
)
const
agentId
=
ref
(
''
)
const
agentId
=
ref
(
''
)
const
dialogsId
=
ref
(
''
)
const
dialogsId
=
ref
(
''
)
const
agentMemberInfo
=
ref
<
UserInfo
>
({
const
agentMemberInfo
=
ref
<
UserInfo
>
(
createDefaultUserInfoFactory
())
avatarUrl
:
'https://gsst-poe-sit.gz.bcebos.com/data/20240910/1725952917468.png'
,
memberId
:
null
,
mobilePhone
:
''
,
nickName
:
'---'
,
})
const
agentApplicationConfig
=
ref
<
PersonalAppConfigState
>
(
defaultPersonalAppConfigState
())
const
agentApplicationConfig
=
ref
<
PersonalAppConfigState
>
(
defaultPersonalAppConfigState
())
...
...
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