update proxy

This commit is contained in:
Fine 2025-05-29 10:18:09 +08:00
parent 30564ef9ba
commit 326a336ea7
3 changed files with 8 additions and 4 deletions

View File

@ -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`,
};

View File

@ -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<DashboardItem[]>([]);
const searchText = ref<string>("");
const loading = ref<boolean>(false);

View File

@ -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: {