File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6666
6767<script >
6868import { ref , reactive , toRaw } from ' vue'
69- import { getAPI } from ' @/api'
69+ import { getAPI , postAPI } from ' @/api'
7070import TooltipLabel from ' @/components/widgets/TooltipLabel'
7171
7272export default {
@@ -172,7 +172,7 @@ export default {
172172 },
173173 addNodesToKubernetesCluster (params ) {
174174 return new Promise ((resolve , reject ) => {
175- getAPI (' addNodesToKubernetesCluster' , params).then (json => {
175+ postAPI (' addNodesToKubernetesCluster' , params).then (json => {
176176 const jobId = json .addnodestokubernetesclusterresponse .jobid
177177 return resolve (jobId)
178178 }).catch (error => {
Original file line number Diff line number Diff line change 5454
5555<script >
5656import { ref , reactive , toRaw } from ' vue'
57- import { getAPI } from ' @/api'
57+ import { postAPI } from ' @/api'
5858import TooltipLabel from ' @/components/widgets/TooltipLabel'
5959
6060export default {
@@ -137,7 +137,7 @@ export default {
137137 },
138138 removeNodesFromKubernetesCluster (params ) {
139139 return new Promise ((resolve , reject ) => {
140- getAPI (' removeNodesFromKubernetesCluster' , params).then (json => {
140+ postAPI (' removeNodesFromKubernetesCluster' , params).then (json => {
141141 const jobId = json .removenodesfromkubernetesclusterresponse .jobid
142142 return resolve (jobId)
143143 }).catch (error => {
You can’t perform that action at this time.
0 commit comments