Skip to content

Conversation

@Elyxiya
Copy link
Contributor

@Elyxiya Elyxiya commented Sep 28, 2024

Connect the new backend

// secret: secretKey,
// }),
// })
const verifyRes: ReCaptchaResponse = await $fetch('http://116.198.204.233:2024/api/enroll', {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

密钥和 IP 不要写死在代码里啊,用环境变量

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些变更已经合并了,重新从 master 拉个分支出来就好了

// })
// return
// }
// const config = useRuntimeConfig()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注释和 console.log 删掉


const runtimeConfig = useRuntimeConfig()
const { apiBase, apiToken, secretKey } = runtimeConfig.public
console.log(apiBase, apiToken, secretKey)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants