Commit 3f76482f authored by tyyin lan's avatar tyyin lan

Merge branch 'shirlyn'

parents 8b27b841 1d0f31cc
......@@ -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