From ea84256cf669cef1a474b6d761e6882562d8e0a5 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Fri, 19 Dec 2025 13:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=BB=E9=A1=B5home?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BD=9C=E4=B8=BA=E9=80=89=E6=8B=A9=E4=B8=BB?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E6=88=96=E8=80=85=E4=BB=8E=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E7=BB=A7=E7=BB=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FooterNavigation.vue | 2 +- src/router/index.ts | 18 ++-- src/views/Workshop/homeNav.vue | 122 ++++++++++++++++++++++++++++ src/views/login/customer.vue | 2 +- 4 files changed, 135 insertions(+), 9 deletions(-) create mode 100644 src/views/Workshop/homeNav.vue diff --git a/src/components/FooterNavigation.vue b/src/components/FooterNavigation.vue index 0f63833..f9621a4 100644 --- a/src/components/FooterNavigation.vue +++ b/src/components/FooterNavigation.vue @@ -31,7 +31,7 @@ .catch(() => {}) } const navs = [ - { label: 'Home', icon: 'home', size: 73, path: '/homeNav' }, + { label: 'Home', icon: 'home', size: 73, path: '/workshop/home' }, { label: 'Library', icon: 'library', size: 53, path: '/workshop/library' }, // { label: 'Profile', icon: 'profile', size: 55, path: '/workshop/profile' } ] diff --git a/src/router/index.ts b/src/router/index.ts index 2498bec..04c585e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -66,13 +66,7 @@ const router = createRouter({ path: '/customer', name: 'customer', component: () => import('@/views/login/customer.vue'), - }, - { - path: '/homeNav', - name: 'HomeNav', - component: () => import('@/views/Workshop/home.vue') - }, - + }, { path: '/asistant', name: 'asistant', @@ -88,6 +82,16 @@ const router = createRouter({ // path: '/workshop', // redirect: '/workshop/selectStyle' // }, + { + path: '/workshop/home', + name: 'Home', + component: () => import('@/views/Workshop/home.vue') + }, + { + path: '/workshop/homeNav', + name: 'HomeNav', + component: () => import('@/views/Workshop/homeNav.vue') + }, { path: '/workshop/stylist', name: 'StylistPage', diff --git a/src/views/Workshop/homeNav.vue b/src/views/Workshop/homeNav.vue new file mode 100644 index 0000000..821a8a4 --- /dev/null +++ b/src/views/Workshop/homeNav.vue @@ -0,0 +1,122 @@ + + + \ No newline at end of file diff --git a/src/views/login/customer.vue b/src/views/login/customer.vue index f3f39dc..6f1acc1 100644 --- a/src/views/login/customer.vue +++ b/src/views/login/customer.vue @@ -94,7 +94,7 @@ const handleConfirm = async () => { // console.log('res', res) generateStore.setCustomerInfo(res) // router.push('/workshop/stylist/index') - router.push('/homeNav') + router.push('/workshop/homeNav') }) }