Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.

Commit d82bfa7

Browse files
davidjumaniustcweizhou
authored andcommitted
Using post for uploadSslCert api (#842)
* Adding post param to actions * Using post for uploadSslCert api
1 parent 7c30762 commit d82bfa7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/config/section/account.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ export default {
160160
label: 'label.add.certificate',
161161
dataView: true,
162162
args: ['name', 'certificate', 'privatekey', 'certchain', 'password', 'account', 'domainid'],
163+
post: true,
163164
show: (record) => { return record.state === 'enabled' },
164165
mapping: {
165166
account: {

src/views/AutogenView.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,13 @@ export default {
10001000
10011001
var hasJobId = false
10021002
this.actionLoading = true
1003-
api(action.api, params).then(json => {
1003+
let args = null
1004+
if (action.post) {
1005+
args = [action.api, {}, 'POST', params]
1006+
} else {
1007+
args = [action.api, params]
1008+
}
1009+
api(...args).then(json => {
10041010
hasJobId = this.handleResponse(json, resourceName, action)
10051011
if ((action.icon === 'delete' || ['archiveEvents', 'archiveAlerts', 'unmanageVirtualMachine'].includes(action.api)) && this.dataView) {
10061012
this.$router.go(-1)

0 commit comments

Comments
 (0)