mirror of
https://github.com/certd/certd.git
synced 2026-05-17 22:07:34 +08:00
chore:
This commit is contained in:
@@ -32,10 +32,21 @@ onMounted(() => {
|
||||
return subjectInfo;
|
||||
});
|
||||
|
||||
iframeClient.register("preBindSubject", async (req) => {
|
||||
let preBindUserId = null;
|
||||
iframeClient.register("preBindUser", async (req) => {
|
||||
const userId = req.data.userId;
|
||||
preBindUserId = userId;
|
||||
await api.PreBindUser(userId);
|
||||
});
|
||||
|
||||
iframeClient.register("onBoundUser", async (req) => {
|
||||
await api.BindUser(preBindUserId);
|
||||
});
|
||||
|
||||
iframeClient.register("unbindUser", async (req) => {
|
||||
const userId = req.data.userId;
|
||||
await api.UnbindUser(userId);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user