preferred as leader.

This commit is contained in:
许晓东
2021-11-10 20:45:15 +08:00
parent ce88ddc4b5
commit efe4a59c7e
11 changed files with 261 additions and 16 deletions

View File

@@ -182,4 +182,8 @@ export const KafkaOpApi = {
url: "/op/sync/alignment",
method: "delete",
},
electPreferredLeader: {
url: "/op/replication/preferred",
method: "post",
},
};

View File

@@ -6,7 +6,7 @@ import { VueAxios } from "./axios";
const request = axios.create({
// API 请求的默认前缀
baseURL: process.env.VUE_APP_API_BASE_URL,
timeout: 10000, // 请求超时时间
timeout: 30000, // 请求超时时间
});
// 异常拦截处理器