新增删除列表前的确认弹窗

This commit is contained in:
lyswhut
2021-09-30 14:45:14 +08:00
parent ce7bca5b36
commit b1918e8b15
7 changed files with 21 additions and 3 deletions
+7 -1
View File
@@ -818,7 +818,13 @@ export default {
this.movedownUserList({ id: this.userList[index].id })
break
case 'remove':
this.removeUserList({ id: this.userList[index].id })
this.$dialog.confirm({
message: this.$t('view.list.lists_remove_tip', { name: this.userList[index].name }),
confirmButtonText: this.$t('view.list.lists_remove_tip_button'),
}).then(isRemove => {
if (!isRemove) return
this.removeUserList({ id: this.userList[index].id })
})
break
}
},