This commit is contained in:
zhangjianjun 2026-07-16 10:51:46 +08:00
parent ba32064545
commit 67e7a18adf
1 changed files with 4 additions and 1 deletions

View File

@ -24,8 +24,11 @@ export default function CorpPage() {
void (async () => {
try {
const loginResult = await Taro.login()
console.log("loginResult.code", loginResult.code)
console.log("linkCode", linkCode)
// return
setUrl(
`http://nb.zuom8.cn${LINK_PREFIX}${encodeURIComponent(linkCode)}?mpCode=${encodeURIComponent(loginResult.code)}`,
`https://nb.zuom8.cn${LINK_PREFIX}${encodeURIComponent(linkCode)}?mpCode=${encodeURIComponent(loginResult.code)}`,
)
} catch (error) {
console.error('Failed to initialize corporate page.', error)