fix: show devCode modal in email login for non-production mode

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
yuzhiran
2026-06-18 18:21:34 +08:00
parent e049be280e
commit 27e4d06da7
+3
View File
@@ -192,6 +192,9 @@ const sendEmailCode = () => {
emailSent.value = true emailSent.value = true
showToast('验证码已发送', 'success') showToast('验证码已发送', 'success')
startCooldown() startCooldown()
if (res.data?.devCode) {
uni.showModal({ title: '开发模式', content: `验证码:${res.data.devCode}`, showCancel: false })
}
} else { } else {
const msg = (res.data && res.data.message) || '发送失败' const msg = (res.data && res.data.message) || '发送失败'
showToast(msg) showToast(msg)