119119</template >
120120
121121<script >
122- import { api } from ' @/api'
122+ import { getAPI , postAPI } from ' @/api'
123123import ObjectListTable from ' @/components/view/ObjectListTable.vue'
124124import TooltipButton from ' @/components/widgets/TooltipButton'
125125import AddCustomAction from ' @/views/extension/AddCustomAction.vue'
@@ -210,7 +210,7 @@ export default {
210210 listall: true
211211 }
212212 this .tabLoading = true
213- api (' listCustomActions' , params).then (json => {
213+ getAPI (' listCustomActions' , params).then (json => {
214214 this .extensionCustomActions = []
215215 this .totalCount = json? .listcustomactionsresponse ? .count || 0
216216 this .extensionCustomActions = json? .listcustomactionsresponse ? .extensioncustomaction || []
@@ -237,7 +237,7 @@ export default {
237237 enabled: ! record .enabled
238238 }
239239 this .updateLoading = true
240- api (' updateCustomAction' , params).then (json => {
240+ postAPI (' updateCustomAction' , params).then (json => {
241241 this .fetchCustomActions ()
242242 this .$notification .success ({
243243 message: record .enabled ? this .$t (' label.disable.custom.action' ) : this .$t (' label.enable.custom.action' ),
@@ -254,7 +254,7 @@ export default {
254254 id: record .id
255255 }
256256 this .deleteLoading = true
257- api (' deleteCustomAction' , params).then (json => {
257+ postAPI (' deleteCustomAction' , params).then (json => {
258258 this .fetchCustomActions ()
259259 this .$notification .success ({
260260 message: this .$t (' label.delete.custom.action' ),
0 commit comments