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
9d8a7fd6
Commit
9d8a7fd6
authored
Nov 07, 2024
by
shirlyn.guo
👌🏻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 应用广场更改路由配置&应用广场收藏/取消收藏信息提示
parent
97bb1af7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
applications-square.ts
src/router/modules/applications-square.ts
+5
-8
applications-square.vue
src/views/applications-square/applications-square.vue
+8
-3
No files found.
src/router/modules/applications-square.ts
View file @
9d8a7fd6
import
{
type
RouteRecordRaw
}
from
'vue-router'
import
Layout
from
'@/layout/index.vue'
export
default
[
{
path
:
'/explore'
,
name
:
'Explore'
,
path
:
'/applications/square'
,
meta
:
{
rank
:
1001
,
title
:
'router_title_module.explore'
,
icon
:
'mingcute:user-2-line'
,
belong
:
'applications-square'
,
title
:
'router_title_module.application_square'
,
},
component
:
()
=>
import
(
'@/layout/index.vue'
),
redirect
:
'/personalSpaceLayout'
,
component
:
Layout
,
children
:
[
{
path
:
'
/applications-square
'
,
path
:
''
,
name
:
'ApplicationsSquare'
,
meta
:
{
rank
:
1001
,
...
...
src/views/applications-square/applications-square.vue
View file @
9d8a7fd6
...
...
@@ -108,9 +108,14 @@ function handleGetAgentApplicationList(update = false, search = false) {
})
}
function
handleCollectOrCancelAgentApplication
(
id
:
number
)
{
fetchCollectOrCancelAgentApplication
(
id
).
then
(()
=>
{
function
handleCollectOrCancelAgentApplication
(
agentApplicationItem
:
PersonalAppConfigState
)
{
fetchCollectOrCancelAgentApplication
(
agentApplicationItem
.
id
).
then
(()
=>
{
handleGetAgentApplicationList
(
true
)
if
(
agentApplicationItem
.
isCollect
===
'Y'
)
{
window
.
$message
.
success
(
t
(
'common_module.collect_unsubscribed'
))
}
else
{
window
.
$message
.
success
(
t
(
'common_module.collect_successfully'
))
}
})
}
...
...
@@ -252,7 +257,7 @@ function handleAddAgentApplications() {
:fill=
"agentApplicationItem.isCollect === 'Y' ? ['#ffc06d', '#ffc06d'] : ['#333', '#fff']"
:stroke-width=
"3"
class=
"cursor-pointer transition-all delay-150 duration-300 ease-in-out"
@
click=
"handleCollectOrCancelAgentApplication(agentApplicationItem
.id!
)"
@
click=
"handleCollectOrCancelAgentApplication(agentApplicationItem)"
/>
<span
class=
"ml-[6px] text-[12px] text-[#333]"
>
{{ agentApplicationItem.collectNumber }}
</span>
</div>
...
...
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