Commit 0e22563a authored by shirlyn.guo's avatar shirlyn.guo 👌🏻

chore: 应用广场收藏和取消收藏应用时最后三排应用会突然不显示

parent d1ce02ff
......@@ -110,11 +110,14 @@ function handleGetAgentApplicationList(update = false, search = false) {
function handleCollectOrCancelAgentApplication(agentApplicationItem: PersonalAppConfigState) {
fetchCollectOrCancelAgentApplication(agentApplicationItem.id).then(() => {
handleGetAgentApplicationList(true)
if (agentApplicationItem.isCollect === 'Y') {
window.$message.success(t('common_module.collect_unsubscribed'))
agentApplicationItem.isCollect = 'N'
agentApplicationItem.collectNumber! -= 1
} else {
window.$message.success(t('common_module.collect_successfully'))
agentApplicationItem.isCollect = 'Y'
agentApplicationItem.collectNumber! += 1
}
})
}
......
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