-
+
@@ -26,7 +17,7 @@ import { inject, ref, useAttrs, watch } from "vue";
import { PluginDefine } from "@certd/pipeline";
defineOptions({
- name: "RemoteSelect"
+ name: "RemoteSelect",
});
const props = defineProps<
@@ -87,14 +78,14 @@ const getOptions = async () => {
type: pluginType,
typeName: form.type,
action: props.action,
- input: pluginType === "plugin" ? form.input : form
+ input: pluginType === "plugin" ? form.input : form,
},
{
onError(err: any) {
hasError.value = true;
message.value = `获取选项出错:${err.message}`;
},
- showErrorNotify: false
+ showErrorNotify: false,
}
);
if (res && res.length > 0) {
@@ -129,14 +120,14 @@ watch(
}
return {
form: props.form,
- watched: values
+ watched: values,
};
},
async () => {
await getOptions();
},
{
- immediate: true
+ immediate: true,
}
);
diff --git a/packages/ui/certd-client/src/components/plugins/index.ts b/packages/ui/certd-client/src/components/plugins/index.ts
index aba2ab19..4b6152c7 100644
--- a/packages/ui/certd-client/src/components/plugins/index.ts
+++ b/packages/ui/certd-client/src/components/plugins/index.ts
@@ -1,5 +1,6 @@
import SynologyIdDeviceGetter from "./synology/device-id-getter.vue";
import RemoteSelect from "./common/remote-select.vue";
+import RemoteInput from "./common/remote-input.vue";
import CertDomainsGetter from "./common/cert-domains-getter.vue";
import OutputSelector from "/@/components/plugins/common/output-selector/index.vue";
import DnsProviderSelector from "/@/components/plugins/cert/dns-provider-selector/index.vue";
@@ -21,6 +22,7 @@ export default {
app.component("SynologyDeviceIdGetter", SynologyIdDeviceGetter);
app.component("RemoteSelect", RemoteSelect);
+ app.component("RemoteInput", RemoteInput);
app.component("CertDomainsGetter", CertDomainsGetter);
app.component("InputPassword", InputPassword);
},
diff --git a/packages/ui/certd-client/src/components/plugins/synology/device-id-getter.vue b/packages/ui/certd-client/src/components/plugins/synology/device-id-getter.vue
index b60416f4..b81ac2d9 100644
--- a/packages/ui/certd-client/src/components/plugins/synology/device-id-getter.vue
+++ b/packages/ui/certd-client/src/components/plugins/synology/device-id-getter.vue
@@ -15,7 +15,7 @@ import { Modal } from "ant-design-vue";
import { ComponentPropsType, doRequest } from "/@/components/plugins/lib";
defineOptions({
- name: "DeviceIdGetter"
+ name: "DeviceIdGetter",
});
const props = defineProps
();
@@ -38,9 +38,9 @@ async function loginWithOTPCode(otpCode: string) {
typeName: form.type,
action: "LoginWithOPTCode",
data: {
- otpCode
+ otpCode,
},
- input: form
+ input: form,
});
}
@@ -61,7 +61,7 @@ async function getDeviceId() {
const res = await loginWithOTPCode(otpCodeRef.value);
console.log("did返回", res);
emit("update:value", res.did);
- }
+ },
});
}