Skip to content

Commit

Permalink
fix: insight edit function api method (#724)
Browse files Browse the repository at this point in the history
## What type of PR is this?
/kind bug

## What this PR does / why we need it:

fix HTTP method when edit resource group

## Which issue(s) this PR fixes:

Fixes #
  • Loading branch information
hai-tian authored Jan 14, 2025
1 parent b59abe4 commit 524d9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const useAxios = ({
try {
const res = await axios({
url: newOptions?.url,
method: method.toLowerCase(),
method: (newOptions?.method || method).toLowerCase(),
...newOptions?.option,
})
handleResponse(res, newOptions?.callbackFn, newOptions?.successParams)
Expand Down

0 comments on commit 524d9a9

Please sign in to comment.