fix: 修复获取群辉deviceid报错的bug

This commit is contained in:
xiaojunnuo
2026-02-18 10:13:24 +08:00
parent c8e193e70d
commit 39d3bf97d1

View File

@@ -13,6 +13,7 @@
import { inject, ref, useAttrs } from "vue";
import { Modal } from "ant-design-vue";
import { ComponentPropsType, doRequest } from "/@/components/plugins/lib";
import { getInputFromForm } from "../common/utils";
defineOptions({
name: "DeviceIdGetter",
@@ -34,7 +35,7 @@ const getPluginType: any = inject("get:plugin:type", () => {
async function loginWithOTPCode(otpCode: string) {
const { form } = getScope();
const pluginType = getPluginType();
const { input, record } = getInputFromForm(form, pluginType);
return await doRequest({
type: pluginType,
typeName: form.type,
@@ -42,7 +43,8 @@ async function loginWithOTPCode(otpCode: string) {
data: {
otpCode,
},
input: form,
input: input,
record,
});
}