5353</template >
5454
5555<script >
56- import { api } from ' @/api'
56+ import { getAPI , postAPI } from ' @/api'
5757import DedicateModal from ' ./DedicateModal'
5858
5959export default {
@@ -124,7 +124,7 @@ export default {
124124 }
125125 },
126126 fetchDedicatedZones () {
127- api (' listDedicatedZones' , {
127+ getAPI (' listDedicatedZones' , {
128128 zoneid: this .resource .id
129129 }).then (response => {
130130 if (response? .listdedicatedzonesresponse ? .dedicatedzone ? .length > 0 ) {
@@ -136,7 +136,7 @@ export default {
136136 })
137137 },
138138 fetchDedicatedPods () {
139- api (' listDedicatedPods' , {
139+ getAPI (' listDedicatedPods' , {
140140 podid: this .resource .id
141141 }).then (response => {
142142 if (response? .listdedicatedpodsresponse ? .dedicatedpod ? .length > 0 ) {
@@ -148,7 +148,7 @@ export default {
148148 })
149149 },
150150 fetchDedicatedClusters () {
151- api (' listDedicatedClusters' , {
151+ getAPI (' listDedicatedClusters' , {
152152 clusterid: this .resource .id
153153 }).then (response => {
154154 if (response? .listdedicatedclustersresponse ? .dedicatedcluster ? .length > 0 ) {
@@ -160,7 +160,7 @@ export default {
160160 })
161161 },
162162 fetchDedicatedHosts () {
163- api (' listDedicatedHosts' , {
163+ getAPI (' listDedicatedHosts' , {
164164 hostid: this .resource .id
165165 }).then (response => {
166166 if (response? .listdedicatedhostsresponse ? .dedicatedhost ? .length > 0 ) {
@@ -172,7 +172,7 @@ export default {
172172 })
173173 },
174174 releaseDedidcatedZone () {
175- api (' releaseDedicatedZone' , {
175+ postAPI (' releaseDedicatedZone' , {
176176 zoneid: this .resource .id
177177 }).then (response => {
178178 this .$pollJob ({
@@ -195,7 +195,7 @@ export default {
195195 })
196196 },
197197 releaseDedidcatedPod () {
198- api (' releaseDedicatedPod' , {
198+ postAPI (' releaseDedicatedPod' , {
199199 podid: this .resource .id
200200 }).then (response => {
201201 this .$pollJob ({
@@ -218,7 +218,7 @@ export default {
218218 })
219219 },
220220 releaseDedidcatedCluster () {
221- api (' releaseDedicatedCluster' , {
221+ postAPI (' releaseDedicatedCluster' , {
222222 clusterid: this .resource .id
223223 }).then (response => {
224224 this .$pollJob ({
@@ -241,7 +241,7 @@ export default {
241241 })
242242 },
243243 releaseDedidcatedHost () {
244- api (' releaseDedicatedHost' , {
244+ postAPI (' releaseDedicatedHost' , {
245245 hostid: this .resource .id
246246 }).then (response => {
247247 this .$pollJob ({
0 commit comments