diff --git a/src/graphql/http/url.ts b/src/graphql/http/url.ts index 764c9c27..695f1acd 100644 --- a/src/graphql/http/url.ts +++ b/src/graphql/http/url.ts @@ -16,7 +16,7 @@ */ export const HttpURL = { - ClusterNodes: `/status/cluster/nodes`, - ConfigTTL: `/status/config/ttl`, - DebuggingConfigDump: `/debugging/config/dump`, + ClusterNodes: `/api/status/cluster/nodes`, + ConfigTTL: `/api/status/config/ttl`, + DebuggingConfigDump: `/api/debugging/config/dump`, }; diff --git a/src/views/dashboard/List.vue b/src/views/dashboard/List.vue index 69d0e92d..3384eef8 100644 --- a/src/views/dashboard/List.vue +++ b/src/views/dashboard/List.vue @@ -188,7 +188,7 @@ limitations under the License. --> /*global Nullable, Recordable*/ const { t } = useI18n(); const dashboardStore = useDashboardStore(); - const pageSize = 20; + const pageSize = 12; const dashboards = ref([]); const searchText = ref(""); const loading = ref(false); diff --git a/vite.config.ts b/vite.config.ts index 0928bd3b..68f349fc 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -75,6 +75,10 @@ export default ({ mode }: ConfigEnv): UserConfig => { target: `${VITE_SW_PROXY_TARGET || "http://127.0.0.1:12800"}`, changeOrigin: true, }, + "/api": { + target: `${VITE_SW_PROXY_TARGET || "http://127.0.0.1:12800"}`, + rewrite: (path) => path.replace(/^\/api/, ""), + }, }, }, build: {