Skip to content

Commit 10a7edd

Browse files
committed
fix: 修复前端报错的缺陷
--bug=1048335 --user=王孝刚 【系统设置】扫描登录页面弹出错误信息:Missing parameters https://www.tapd.cn/57709429/s/1601519
1 parent 527ddbf commit 10a7edd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ui/src/views/login/components/dingtalkQrCode.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="flex-center mb-16">
3-
<img src="@/assets/logo_dingtalk.svg " alt="" width="24px" class="mr-4" />
3+
<img src="@/assets/logo_dingtalk.svg" alt="" width="24px" class="mr-4" />
44
<h2>钉钉扫码登录</h2>
55
</div>
66
<div class="ding-talk-qrName">
@@ -66,7 +66,7 @@ const props = defineProps<{
6666
config: {
6767
app_secret: string
6868
app_key: string
69-
corp_id?: string
69+
crop_id: string
7070
}
7171
}>()
7272
@@ -81,15 +81,15 @@ const initActive = async () => {
8181
if (!isConfigReady.value) {
8282
return
8383
}
84+
console.log(props.config)
8485
8586
const data = {
8687
appKey: props.config.app_key,
8788
appSecret: props.config.app_secret,
88-
corp_id: props.config.corp_id
89+
crop_id: props.config.crop_id
8990
}
9091
9192
const redirectUri = encodeURIComponent(window.location.origin)
92-
9393
window.DTFrameLogin(
9494
{
9595
id: 'ding-talk-qr',
@@ -98,13 +98,13 @@ const initActive = async () => {
9898
},
9999
{
100100
redirect_uri: redirectUri,
101-
client_id: data.appKey || '',
101+
client_id: data.appKey,
102102
scope: 'openid',
103103
response_type: 'code',
104104
state: 'fit2cloud-ding-qr',
105105
prompt: 'consent',
106106
exclusiveLogin: 'true',
107-
exclusiveCorpId: data.corp_id
107+
exclusiveCorpId: data.crop_id
108108
},
109109
(loginResult) => {
110110
const authCode = loginResult.authCode
@@ -122,7 +122,7 @@ const initActive = async () => {
122122
}
123123
124124
onMounted(() => {
125-
// 模拟 config 加载完成
125+
// Simulate config loading completion
126126
setTimeout(() => {
127127
isConfigReady.value = true
128128
initActive()

0 commit comments

Comments
 (0)