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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user