Skip to content

Commit

Permalink
fix(ui): wrong api address (#615)
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 wrong api address

## Which issue(s) this PR fixes:

<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests or flakes`, please post the related
issues/tests in a comment and do not use `Fixes`_*
-->

Fixes #

---------

Co-authored-by: ruquanzhao <[email protected]>
  • Loading branch information
hai-tian and ruquanzhao authored Sep 11, 2024
1 parent e6f9062 commit 820303a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/src/pages/insightDetail/namespace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const ClusterDetail = () => {

const { response: clusterDetailResponse, refetch: clusterDetailRefetch } =
useAxios({
url: `/rest-api/v1/cluster/${cluster}`,
url: '/rest-api/v1/insight/detail',
method: 'GET',
})

Expand All @@ -138,7 +138,7 @@ const ClusterDetail = () => {

function getClusterDetail() {
clusterDetailRefetch({
url: `/rest-api/v1/cluster/${cluster}`,
url: '/rest-api/v1/insight/detail',
option: {
params: {
cluster,
Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/insightDetail/resource/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const ClusterDetail = () => {

const { response: clusterDetailResponse, refetch: clusterDetailRefetch } =
useAxios({
url: `/rest-api/v1/cluster/${cluster}`,
url: '/rest-api/v1/insight/score',
method: 'GET',
})

Expand All @@ -113,7 +113,7 @@ const ClusterDetail = () => {

function getClusterDetail() {
clusterDetailRefetch({
url: `/rest-api/v1/cluster/${cluster}`,
url: '/rest-api/v1/insight/detail',
option: {
params: {
cluster,
Expand Down

0 comments on commit 820303a

Please sign in to comment.