feat: 页面跳转逻辑&语音输入界面

This commit is contained in:
zhangyh
2025-10-16 13:34:30 +08:00
parent 3141fc3640
commit cb63e15aec
7 changed files with 306 additions and 22 deletions

View File

@@ -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('登录失败,请重试')