Commit 47e80269 authored by shirlyn.guo's avatar shirlyn.guo 👌🏻

chore: 修改删除弹窗

parent d59b11d4
......@@ -133,19 +133,15 @@ function handleEnterKeypress(event: KeyboardEvent) {
}
function handleDeletePersonalApp(agentId: string) {
window.$dialog.warning({
title: t('personal_space_module.agent_module.agent_list_module.delete_agent_dialog_title'),
content: t('personal_space_module.agent_module.agent_list_module.delete_agent_dialog_content'),
negativeText: t('common_module.cancel_btn_text'),
positiveText: t('common_module.confirm_btn_text'),
onPositiveClick: async () => {
window.$message
.ctWarning(t('personal_space_module.agent_module.agent_list_module.delete_agent_dialog_title'))
.then(() => {
fetchDeleteApplication(agentId).then((res) => {
if (res.code !== 0) return
window.$message.success(t('common_module.delete_success_message'))
agentAppList.value.length === 1 && (pagingInfo.value.pageNo = pagingInfo.value.pageNo - 1)
getApplicationList()
})
},
})
}
......
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