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

chore: 修改删除弹窗

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