From 0cba2b3116b3b0bd5d105e31393d3241328c454c Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 16 Nov 2020 18:55:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E7=9A=84=E6=8F=90=E7=A4=BA=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/applications/DatabaseApp/DatabaseAppList.vue | 4 ++-- src/views/applications/KubernetesApp/KubernetesAppList.vue | 4 ++-- src/views/applications/RemoteApp/RemoteAppList.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/applications/DatabaseApp/DatabaseAppList.vue b/src/views/applications/DatabaseApp/DatabaseAppList.vue index bb52d2f76..28ebce429 100644 --- a/src/views/applications/DatabaseApp/DatabaseAppList.vue +++ b/src/views/applications/DatabaseApp/DatabaseAppList.vue @@ -37,12 +37,12 @@ export default { actions: { prop: '', formatterArgs: { - onDelete: function({ row, col, cellValue, reload }) { + performDelete: function({ row, col, cellValue, reload }) { this.$axios.delete( `/api/v1/applications/applications/${row.id}/` ).then(res => { this.$refs.GenericListTable.$refs.ListTable.reloadTable() - this.$message.success(this.$t('common.deleteSuccessMsg')) + // this.$message.success(this.$t('common.deleteSuccessMsg')) }).catch(error => { this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error)) }) diff --git a/src/views/applications/KubernetesApp/KubernetesAppList.vue b/src/views/applications/KubernetesApp/KubernetesAppList.vue index bd123b552..45d75d638 100644 --- a/src/views/applications/KubernetesApp/KubernetesAppList.vue +++ b/src/views/applications/KubernetesApp/KubernetesAppList.vue @@ -29,12 +29,12 @@ export default { actions: { prop: '', formatterArgs: { - onDelete: function({ row, col, cellValue, reload }) { + performDelete: function({ row, col, cellValue, reload }) { this.$axios.delete( `/api/v1/applications/applications/${row.id}/` ).then(res => { this.$refs.GenericListTable.$refs.ListTable.reloadTable() - this.$message.success(this.$t('common.deleteSuccessMsg')) + // this.$message.success(this.$t('common.deleteSuccessMsg')) }).catch(error => { this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error)) }) diff --git a/src/views/applications/RemoteApp/RemoteAppList.vue b/src/views/applications/RemoteApp/RemoteAppList.vue index 976547662..ed550a17f 100644 --- a/src/views/applications/RemoteApp/RemoteAppList.vue +++ b/src/views/applications/RemoteApp/RemoteAppList.vue @@ -38,12 +38,12 @@ export default { onUpdate: ({ row }) => { vm.$router.push({ name: 'RemoteAppUpdate', params: { id: row.id }, query: { type: row.type }}) }, - onDelete: function({ row, col, cellValue, reload }) { + performDelete: function({ row, col, cellValue, reload }) { this.$axios.delete( `/api/v1/applications/applications/${row.id}/` ).then(res => { this.$refs.GenericListTable.$refs.ListTable.reloadTable() - this.$message.success(this.$t('common.deleteSuccessMsg')) + // this.$message.success(this.$t('common.deleteSuccessMsg')) }).catch(error => { this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error)) })