File tree Expand file tree Collapse file tree
frontend/packages/core/src/pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ const Login: FC = () => {
9797 return
9898 }
9999 if ( isInFeishuClient ( ) && feishu ) {
100- openFeishuLogin ( )
100+ openFeishuLogin ( feishu . config . client_id )
101101 }
102102 setSpinning ( false )
103103 }
@@ -182,9 +182,9 @@ const Login: FC = () => {
182182 }
183183
184184 // 打开飞书授权页面
185- const openFeishuLogin = ( ) => {
185+ const openFeishuLogin = ( id ?: string ) => {
186186 const href = window . location . origin + window . location . pathname
187- const authUrl = `https://accounts.feishu.cn/open-apis/authen/v1/authorize?client_id=${ feishuAppId } &redirect_uri=${ href } `
187+ const authUrl = `https://accounts.feishu.cn/open-apis/authen/v1/authorize?client_id=${ id || feishuAppId } &redirect_uri=${ href } `
188188 localStorage . setItem ( 'feishuCallbackUrl' , href )
189189 window . location . href = authUrl
190190 }
You can’t perform that action at this time.
0 commit comments