Commit 9d8a7fd6 authored by shirlyn.guo's avatar shirlyn.guo 👌🏻

chore: 应用广场更改路由配置&应用广场收藏/取消收藏信息提示

parent 97bb1af7
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,
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment