diff --git a/src/config/section/account.js b/src/config/section/account.js index 9fdf990c4..1fce57aad 100644 --- a/src/config/section/account.js +++ b/src/config/section/account.js @@ -160,6 +160,7 @@ export default { label: 'label.add.certificate', dataView: true, args: ['name', 'certificate', 'privatekey', 'certchain', 'password', 'account', 'domainid'], + post: true, show: (record) => { return record.state === 'enabled' }, mapping: { account: { diff --git a/src/views/AutogenView.vue b/src/views/AutogenView.vue index 80752f953..cfc7b76ed 100644 --- a/src/views/AutogenView.vue +++ b/src/views/AutogenView.vue @@ -990,7 +990,13 @@ export default { var hasJobId = false this.actionLoading = true - api(action.api, params).then(json => { + let args = null + if (action.post) { + args = [action.api, {}, 'POST', params] + } else { + args = [action.api, params] + } + api(...args).then(json => { hasJobId = this.handleResponse(json, resourceName, action) if ((action.icon === 'delete' || ['archiveEvents', 'archiveAlerts', 'unmanageVirtualMachine'].includes(action.api)) && this.dataView) { this.$router.go(-1)