From bce89463f2434a6e1c6432dcd86f5b305ab3c924 Mon Sep 17 00:00:00 2001 From: significative <163999932+significative@users.noreply.github.com> Date: Tue, 20 Aug 2024 09:30:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BD=E7=82=B9=E9=AB=98=E5=BA=A6=E3=80=81?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Layout/tabbar/index.vue | 2 +- src/router/module/constRouter/index.ts | 34 ++- src/views/professionalListProfile/index.vue | 230 ++++++++++++++++++++ src/vite-env-override.d.ts | 5 + 4 files changed, 258 insertions(+), 13 deletions(-) create mode 100644 src/views/professionalListProfile/index.vue create mode 100644 src/vite-env-override.d.ts diff --git a/src/Layout/tabbar/index.vue b/src/Layout/tabbar/index.vue index d64994c..4499e59 100644 --- a/src/Layout/tabbar/index.vue +++ b/src/Layout/tabbar/index.vue @@ -106,7 +106,7 @@ onMounted(() => { display: flex; align-items: center; li { - padding: 20px; + padding: 12px 20px; color: #ffffff; font-size: 14px; cursor: pointer; diff --git a/src/router/module/constRouter/index.ts b/src/router/module/constRouter/index.ts index 72710f9..5bf4ee5 100644 --- a/src/router/module/constRouter/index.ts +++ b/src/router/module/constRouter/index.ts @@ -42,6 +42,16 @@ export const constRouter: any = [ hidden: false, }, }, + { + path: '/professionalListProfile', // 课程 + component: () => import('@/views/professionalListProfile/index.vue'), + name: 'professionalListProfile', + meta: { + icon: '', + title: '课程列表', + hidden: false, + }, + }, { path: '/pedagogicalReform', // 教学改革 component: () => import('@/views/pedagogicalReform/index.vue'), @@ -63,18 +73,18 @@ export const constRouter: any = [ }, }, { - path:'/course', - component:() => import('@/views/course/index.vue'), - name:'course', + path: '/course', + component: () => import('@/views/course/index.vue'), + name: 'course', meta: { title: '课程首页', hidden: true, }, }, { - path:'/knowledge', - component:() => import('@/views/knowledge/index.vue'), - name:'knowledge', + path: '/knowledge', + component: () => import('@/views/knowledge/index.vue'), + name: 'knowledge', meta: { title: '知识点首页', hidden: true, @@ -158,18 +168,18 @@ export const constRouter: any = [ ], }, { - path:'/editAtlas', - component:() => import('@/views/editAtlas/index.vue'), - name:'EditAtlas', + path: '/editAtlas', + component: () => import('@/views/editAtlas/index.vue'), + name: 'EditAtlas', meta: { title: '编辑图谱', hidden: true, }, }, { - path:'/largeScreen', - component:() => import('@/views/professionalProfile/largeScreen.vue'), - name:'LargeScreen', + path: '/largeScreen', + component: () => import('@/views/professionalProfile/largeScreen.vue'), + name: 'LargeScreen', meta: { title: '大屏图谱', hidden: true, diff --git a/src/views/professionalListProfile/index.vue b/src/views/professionalListProfile/index.vue new file mode 100644 index 0000000..44e115a --- /dev/null +++ b/src/views/professionalListProfile/index.vue @@ -0,0 +1,230 @@ + + + + + \ No newline at end of file diff --git a/src/vite-env-override.d.ts b/src/vite-env-override.d.ts new file mode 100644 index 0000000..00c76e4 --- /dev/null +++ b/src/vite-env-override.d.ts @@ -0,0 +1,5 @@ +declare module '*.vue' { + import { DefineComponent } from "vue" + const component: ReturnType + export default component + } \ No newline at end of file