fix: toast
This commit is contained in:
@@ -115,7 +115,7 @@ const handleLogin = async () => {
|
||||
console.log('登录成功', response)
|
||||
userInfoStore.setToken(response.token)
|
||||
userInfoStore.setUserInfo(response.user)
|
||||
showToast('登录成功')
|
||||
showToast('login success')
|
||||
router.replace('/stylist/customer')
|
||||
})
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ const handleConfirm = async () => {
|
||||
fetchRegisterOrLogin({ ...formData, operationType: 'REGISTER' })
|
||||
.then((res) => {
|
||||
console.log('res', res)
|
||||
showToast('注册成功')
|
||||
showToast('register success')
|
||||
router.push('/login')
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
Reference in New Issue
Block a user