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
68478fe2
Commit
68478fe2
authored
Dec 17, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'beta' into 'master'
fix: 创建应用达到上限时进入页面直接提示用户 See merge request
!117
parents
3ea0123f
94ed1b55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
agent-setting.vue
...g/components/agent-config/agent-setting/agent-setting.vue
+14
-16
No files found.
src/views/personal-space/personal-app-setting/components/agent-config/agent-setting/agent-setting.vue
View file @
68478fe2
...
@@ -95,6 +95,8 @@ watch(
...
@@ -95,6 +95,8 @@ watch(
)
)
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
await
handleEquityInfoValidate
()
emitter
?.
on
(
'isGetAgentDetail'
,
()
=>
{
emitter
?.
on
(
'isGetAgentDetail'
,
()
=>
{
;[
'preamble'
,
'featuredQuestions'
]
;[
'preamble'
,
'featuredQuestions'
]
.
filter
((
property
)
=>
{
.
filter
((
property
)
=>
{
...
@@ -135,21 +137,6 @@ async function handleCreatePersonalAgent() {
...
@@ -135,21 +137,6 @@ async function handleCreatePersonalAgent() {
return
return
}
}
await
handleGetEquityInfo
()
if
(
userStore
.
equityInfo
.
usedAgentCount
>=
userStore
.
equityInfo
.
maxAgentCount
)
{
window
.
$message
.
ctWarning
(
t
(
'equity_module.agents_created_exceeds_tip'
),
''
,
t
(
'common_module.back'
))
.
then
(()
=>
{
router
.
replace
({
name
:
'Equity'
})
})
.
catch
(()
=>
{
router
.
back
()
})
handleStopGenerate
()
return
}
const
res
=
await
fetchSaveAgentApplication
<
PersonalAppConfigState
>
(
personalAppConfigStore
.
$state
)
const
res
=
await
fetchSaveAgentApplication
<
PersonalAppConfigState
>
(
personalAppConfigStore
.
$state
)
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
...
@@ -363,7 +350,7 @@ function handleStopGenerate() {
...
@@ -363,7 +350,7 @@ function handleStopGenerate() {
isFullScreenLoading
.
value
=
false
isFullScreenLoading
.
value
=
false
}
}
async
function
handle
GetEquityInfo
()
{
async
function
handle
EquityInfoValidate
()
{
if
(
!
userStore
.
isLogin
)
{
if
(
!
userStore
.
isLogin
)
{
router
.
push
({
router
.
push
({
name
:
'Login'
,
name
:
'Login'
,
...
@@ -372,6 +359,17 @@ async function handleGetEquityInfo() {
...
@@ -372,6 +359,17 @@ async function handleGetEquityInfo() {
}
}
await
userStore
.
fetchUpdateEquityInfo
()
await
userStore
.
fetchUpdateEquityInfo
()
if
(
userStore
.
equityInfo
.
usedAgentCount
>=
userStore
.
equityInfo
.
maxAgentCount
)
{
window
.
$message
.
ctWarning
(
t
(
'equity_module.agents_created_exceeds_tip'
),
''
,
t
(
'common_module.back'
))
.
then
(()
=>
{
router
.
replace
({
name
:
'Equity'
})
})
.
catch
(()
=>
{
router
.
back
()
})
}
}
}
</
script
>
</
script
>
...
...
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