From 3141fc3640cbc89f987161900767111dcc2a60c2 Mon Sep 17 00:00:00 2001 From: zhangyh Date: Wed, 15 Oct 2025 15:46:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E9=A1=B6=E9=83=A8=E5=BF=AB=E6=8D=B7=E7=9F=AD=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/asistant/components/InputArea.vue | 45 +++++++++++++++++++++ src/views/asistant/index.vue | 30 +++++++------- 2 files changed, 60 insertions(+), 15 deletions(-) diff --git a/src/views/asistant/components/InputArea.vue b/src/views/asistant/components/InputArea.vue index 8cac81a..04cb71f 100644 --- a/src/views/asistant/components/InputArea.vue +++ b/src/views/asistant/components/InputArea.vue @@ -1,5 +1,15 @@ diff --git a/src/views/login/LoginPage.vue b/src/views/login/LoginPage.vue index 6c7cd6c..588ea80 100644 --- a/src/views/login/LoginPage.vue +++ b/src/views/login/LoginPage.vue @@ -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('登录失败,请重试') diff --git a/src/views/stylist/customer.vue b/src/views/stylist/customer.vue index 1903e5e..eaab713 100644 --- a/src/views/stylist/customer.vue +++ b/src/views/stylist/customer.vue @@ -40,6 +40,9 @@