From 11cc025d4f7cefbb8f158527e9475dddd163a92d Mon Sep 17 00:00:00 2001 From: fuxiaochun Date: Mon, 21 Aug 2023 10:21:57 +0800 Subject: [PATCH 1/3] debug --- index.html | 2 +- src/components/auth/Login.vue | 4 ++-- src/router/index.js | 2 +- src/views/business/home.vue | 2 +- src/views/course/index.vue | 23 ---------------------- src/views/home/index.vue | 4 ++-- src/views/training/home.vue | 23 ++++++++++++++++++++++ src/views/training/index.vue | 36 +++++++++++++++++------------------ 8 files changed, 48 insertions(+), 48 deletions(-) delete mode 100644 src/views/course/index.vue create mode 100644 src/views/training/home.vue diff --git a/index.html b/index.html index c22fdc3..88dde02 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - aigc + 海兔AIGC
diff --git a/src/components/auth/Login.vue b/src/components/auth/Login.vue index 8c8f256..af7608f 100644 --- a/src/components/auth/Login.vue +++ b/src/components/auth/Login.vue @@ -158,7 +158,7 @@ const reRenderEmailGetcodebtn = () => { } const validate = () => { - if (loginType == 'tel') { + if (loginType.value == 'tel') { if (!telReg.test(tel.value)) { showToast('请输入正确的手机号码!'); return false; @@ -168,7 +168,7 @@ const validate = () => { return false; } } - if (loginType == 'email') { + if (loginType.value == 'email') { if (!emailReg.test(email.value)) { showToast('请输入正确的邮箱地址!'); return false; diff --git a/src/router/index.js b/src/router/index.js index 9294b63..d374e31 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -187,7 +187,7 @@ const router = createRouter({ meta: { title: "AI培训", }, - component: () => import("@/views/training/index.vue"), + component: () => import("@/views/training/home.vue"), }, { path: "vip", diff --git a/src/views/business/home.vue b/src/views/business/home.vue index b0ba3d2..44b45a9 100644 --- a/src/views/business/home.vue +++ b/src/views/business/home.vue @@ -1,5 +1,5 @@ - diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 9c656a4..2351edd 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -58,7 +58,7 @@ import Assistant from '@/views/assistant/index.vue' import Business from '@/views/business/index.vue' import Stream from '@/views/communication/index.vue' -import Course from '@/views/course/index.vue' +import Training from '@/views/training/index.vue' import { Swiper, SwiperSlide } from 'swiper/vue' import { Mousewheel, Pagination } from 'swiper/modules' @@ -83,7 +83,7 @@ const list = [ }, { title: 'AI培训', - component: Course, + component: Training, }, ] diff --git a/src/views/training/home.vue b/src/views/training/home.vue new file mode 100644 index 0000000..fe43613 --- /dev/null +++ b/src/views/training/home.vue @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/src/views/training/index.vue b/src/views/training/index.vue index fe43613..1575dad 100644 --- a/src/views/training/index.vue +++ b/src/views/training/index.vue @@ -1,23 +1,23 @@ - - - \ No newline at end of file From 86e88fda09335a091db78f96c736ed523005a393 Mon Sep 17 00:00:00 2001 From: fuxiaochun Date: Mon, 21 Aug 2023 10:38:10 +0800 Subject: [PATCH 2/3] debug --- src/router/index.js | 4 +++- src/views/communication/index.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index d374e31..558904a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -185,7 +185,8 @@ const router = createRouter({ path: "training", name: "Training", meta: { - title: "AI培训", + title: "AI培训", + group: 'training' }, component: () => import("@/views/training/home.vue"), }, @@ -194,6 +195,7 @@ const router = createRouter({ name: "Vip", meta: { title: "会员专区", + group: 'vip' }, component: () => import("@/views/vip/index.vue"), }, diff --git a/src/views/communication/index.vue b/src/views/communication/index.vue index 0a4a747..ac9e407 100644 --- a/src/views/communication/index.vue +++ b/src/views/communication/index.vue @@ -1,5 +1,5 @@