Commit 6568c2d0 authored by tyyin lan's avatar tyyin lan

Merge branch 'shirlyn' into 'master'

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

See merge request !50
parents 97bb1af7 9d8a7fd6
import { type RouteRecordRaw } from 'vue-router' import { type RouteRecordRaw } from 'vue-router'
import Layout from '@/layout/index.vue'
export default [ export default [
{ {
path: '/explore', path: '/applications/square',
name: 'Explore',
meta: { meta: {
rank: 1001, rank: 1001,
title: 'router_title_module.explore', title: 'router_title_module.application_square',
icon: 'mingcute:user-2-line',
belong: 'applications-square',
}, },
component: () => import('@/layout/index.vue'), component: Layout,
redirect: '/personalSpaceLayout',
children: [ children: [
{ {
path: '/applications-square', path: '',
name: 'ApplicationsSquare', name: 'ApplicationsSquare',
meta: { meta: {
rank: 1001, rank: 1001,
......
...@@ -108,9 +108,14 @@ function handleGetAgentApplicationList(update = false, search = false) { ...@@ -108,9 +108,14 @@ function handleGetAgentApplicationList(update = false, search = false) {
}) })
} }
function handleCollectOrCancelAgentApplication(id: number) { function handleCollectOrCancelAgentApplication(agentApplicationItem: PersonalAppConfigState) {
fetchCollectOrCancelAgentApplication(id).then(() => { fetchCollectOrCancelAgentApplication(agentApplicationItem.id).then(() => {
handleGetAgentApplicationList(true) 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() { ...@@ -252,7 +257,7 @@ function handleAddAgentApplications() {
:fill="agentApplicationItem.isCollect === 'Y' ? ['#ffc06d', '#ffc06d'] : ['#333', '#fff']" :fill="agentApplicationItem.isCollect === 'Y' ? ['#ffc06d', '#ffc06d'] : ['#333', '#fff']"
:stroke-width="3" :stroke-width="3"
class="cursor-pointer transition-all delay-150 duration-300 ease-in-out" 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> <span class="ml-[6px] text-[12px] text-[#333]">{{ agentApplicationItem.collectNumber }}</span>
</div> </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