feat: 页面跳转逻辑&语音输入界面
This commit is contained in:
@@ -117,16 +117,6 @@ const validateForm = () => {
|
||||
return isValid
|
||||
}
|
||||
|
||||
// 计算属性:表单是否有效
|
||||
const isFormValid = computed(() => {
|
||||
return (
|
||||
formData.email &&
|
||||
formData.password &&
|
||||
validateEmail(formData.email) &&
|
||||
validatePassword(formData.password)
|
||||
)
|
||||
})
|
||||
|
||||
// 返回上一页
|
||||
const goBack = () => {
|
||||
router.go(-1)
|
||||
@@ -151,7 +141,7 @@ const handleLogin = async () => {
|
||||
showToast('登录成功')
|
||||
|
||||
// 登录成功后跳转到主页或工作台
|
||||
router.push('/workshop')
|
||||
router.push('/stylist/customer')
|
||||
} catch (error) {
|
||||
console.error('登录失败:', error)
|
||||
showToast('登录失败,请重试')
|
||||
|
||||
Reference in New Issue
Block a user