diff --git a/packages/plugins/plugin-lib/src/common/util.ts b/packages/plugins/plugin-lib/src/common/util.ts index 61a5a7019..7cc889133 100644 --- a/packages/plugins/plugin-lib/src/common/util.ts +++ b/packages/plugins/plugin-lib/src/common/util.ts @@ -54,13 +54,11 @@ export function createRemoteSelectInputDefine(opts?: { const helper = opts?.helper || "请选择"; const search = opts?.search ?? false; const pager = opts?.pager ?? false; - let mode = "tags"; - if (opts.multi === false) { - mode = undefined; - } else { - mode = opts?.mode ?? "tags"; + let mode = "default"; + const multi = opts?.multi ?? true; + if (multi) { + mode = "tags"; } - const item = { title, component: { @@ -72,6 +70,7 @@ export function createRemoteSelectInputDefine(opts?: { action, search, pager, + multi, watches: [certDomainsInputKey, accessIdInputKey, ...watches], ...opts.component, }, diff --git a/packages/ui/certd-client/src/components/plugins/common/remote-select.vue b/packages/ui/certd-client/src/components/plugins/common/remote-select.vue index 4f30133cc..5782c54d9 100644 --- a/packages/ui/certd-client/src/components/plugins/common/remote-select.vue +++ b/packages/ui/certd-client/src/components/plugins/common/remote-select.vue @@ -1,7 +1,7 @@