Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion frontend/src/views/login/xpack/WecomQr.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<template>
<div class="sqlbot-wecom-qr-div">
<div id="sqlbot-wecom-qr" :class="isBind ? 'sqlbot-wecom-bind-qr' : 'sqlbot-wecom-qr'" />
<div
id="sqlbot-wecom-qr"
:class="isWecomClient ? 'sqlbot-wecom-qr-client' : 'sqlbot-wecom-qr'"
/>
</div>
</template>

Expand All @@ -17,6 +20,7 @@ interface WecomInfo {
redirect_uri: string
}

const isWecomClient = ref(false)
const props = defineProps({
isBind: propTypes.bool.def(false),
})
Expand Down Expand Up @@ -68,6 +72,7 @@ const loadQr = (CORP_ID: string, AGENT_ID: string, STATE: string, REDIRECT_URI:
lang: getLocale() === 'en' ? 'en' : 'zh',
},
onCheckWeComLogin({ isWeComLogin }: { isWeComLogin: boolean }) {
isWecomClient.value = isWeComLogin
console.log(isWeComLogin)
},
onLoginSuccess({ code }: { code: string }) {
Expand Down Expand Up @@ -102,5 +107,13 @@ init()
margin-top: -94px;
margin-left: -30px;
}
.sqlbot-wecom-qr-client {
width: 234px;
height: 234px;
transform: scale(0.75);
transform-origin: top left;
margin-top: -35px;
margin-left: 0px;
}
}
</style>