diff --git a/packages/core/acme-client/src/axios.js b/packages/core/acme-client/src/axios.js index 0c5491ea..a562bffc 100644 --- a/packages/core/acme-client/src/axios.js +++ b/packages/core/acme-client/src/axios.js @@ -126,6 +126,7 @@ instance.interceptors.response.use(null, async (error) => { /* Wait and retry the request */ await new Promise((resolve) => { setTimeout(resolve, (retryAfter * 1000)); }); + log(`Retrying request to URL ${config.url}`); return instance(config); } } diff --git a/packages/plugins/plugin-lib/src/common/index.ts b/packages/plugins/plugin-lib/src/common/index.ts index e79acb78..64592c40 100644 --- a/packages/plugins/plugin-lib/src/common/index.ts +++ b/packages/plugins/plugin-lib/src/common/index.ts @@ -46,7 +46,13 @@ export function createRemoteSelectInputDefine(opts?: { const type = opts?.type || "plugin"; const watches = opts?.watches || []; const helper = opts?.helper || "请选择"; - const mode = opts?.mode || "tags"; + let mode = "tags"; + if (opts.multi === false) { + mode = undefined; + } else { + mode = opts?.mode ?? "tags"; + } + const item = { title, component: { diff --git a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue index 302cfba1..d7c7f9b7 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue @@ -89,7 +89,11 @@ export default { return; } //判断当前是否在底部 - const isBottom = el ? el.scrollHeight - el.scrollTop === el.clientHeight : true; + let isBottom = true; + if (el) { + isBottom = el.scrollHeight - el.scrollTop - el.clientHeight < 5; + console.log("isBottom", isBottom, el.scrollHeight, el.scrollTop, el.clientHeight); + } await nextTick(); el = document.querySelector(`.pi-task-view-logs.id-${node.node.id}`); //如果在底部则滚动到底部