perf: 优化通知格式

This commit is contained in:
xiaojunnuo
2025-03-26 12:05:28 +08:00
parent 27a8a57cf5
commit c3c5006daa
4 changed files with 111 additions and 19 deletions
@@ -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<ComponentPropsType>();
@@ -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);
}
},
});
}
</script>