mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
fix: 修复获取群辉deviceid报错的bug
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
import { inject, ref, useAttrs } from "vue";
|
import { inject, ref, useAttrs } from "vue";
|
||||||
import { Modal } from "ant-design-vue";
|
import { Modal } from "ant-design-vue";
|
||||||
import { ComponentPropsType, doRequest } from "/@/components/plugins/lib";
|
import { ComponentPropsType, doRequest } from "/@/components/plugins/lib";
|
||||||
|
import { getInputFromForm } from "../common/utils";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "DeviceIdGetter",
|
name: "DeviceIdGetter",
|
||||||
@@ -34,7 +35,7 @@ const getPluginType: any = inject("get:plugin:type", () => {
|
|||||||
async function loginWithOTPCode(otpCode: string) {
|
async function loginWithOTPCode(otpCode: string) {
|
||||||
const { form } = getScope();
|
const { form } = getScope();
|
||||||
const pluginType = getPluginType();
|
const pluginType = getPluginType();
|
||||||
|
const { input, record } = getInputFromForm(form, pluginType);
|
||||||
return await doRequest({
|
return await doRequest({
|
||||||
type: pluginType,
|
type: pluginType,
|
||||||
typeName: form.type,
|
typeName: form.type,
|
||||||
@@ -42,7 +43,8 @@ async function loginWithOTPCode(otpCode: string) {
|
|||||||
data: {
|
data: {
|
||||||
otpCode,
|
otpCode,
|
||||||
},
|
},
|
||||||
input: form,
|
input: input,
|
||||||
|
record,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user