From 99db358c668cad933f5c5345469ef5b892aeea0a Mon Sep 17 00:00:00 2001 From: ycy <2861518472@qq.com> Date: Mon, 22 Apr 2024 17:15:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20feat:=20=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/echarts/bar.vue | 95 +++++++++++ src/components/echarts/line.vue | 133 +++++++++++++++ src/components/echarts/pie.vue | 88 ++++++++++ src/views/home/components/homeCenter.vue | 200 +++++++++++++++++++++++ src/views/home/components/homeFooter.vue | 93 +++++++++++ src/views/home/components/homeHeader.vue | 94 +++++++++++ src/views/home/index.vue | 57 ++++++- 7 files changed, 757 insertions(+), 3 deletions(-) create mode 100644 src/components/echarts/bar.vue create mode 100644 src/components/echarts/line.vue create mode 100644 src/components/echarts/pie.vue create mode 100644 src/views/home/components/homeCenter.vue create mode 100644 src/views/home/components/homeFooter.vue create mode 100644 src/views/home/components/homeHeader.vue diff --git a/src/components/echarts/bar.vue b/src/components/echarts/bar.vue new file mode 100644 index 0000000..a266a94 --- /dev/null +++ b/src/components/echarts/bar.vue @@ -0,0 +1,95 @@ + + + + + + + diff --git a/src/components/echarts/line.vue b/src/components/echarts/line.vue new file mode 100644 index 0000000..22e2be9 --- /dev/null +++ b/src/components/echarts/line.vue @@ -0,0 +1,133 @@ + + + + + + + diff --git a/src/components/echarts/pie.vue b/src/components/echarts/pie.vue new file mode 100644 index 0000000..d1bd0d4 --- /dev/null +++ b/src/components/echarts/pie.vue @@ -0,0 +1,88 @@ + + + + + + + diff --git a/src/views/home/components/homeCenter.vue b/src/views/home/components/homeCenter.vue new file mode 100644 index 0000000..331b385 --- /dev/null +++ b/src/views/home/components/homeCenter.vue @@ -0,0 +1,200 @@ + + + + + + + diff --git a/src/views/home/components/homeFooter.vue b/src/views/home/components/homeFooter.vue new file mode 100644 index 0000000..52aa888 --- /dev/null +++ b/src/views/home/components/homeFooter.vue @@ -0,0 +1,93 @@ + + + + + + + diff --git a/src/views/home/components/homeHeader.vue b/src/views/home/components/homeHeader.vue new file mode 100644 index 0000000..e77a155 --- /dev/null +++ b/src/views/home/components/homeHeader.vue @@ -0,0 +1,94 @@ + + + + + + + diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 5a42fb3..128fa34 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,8 +1,27 @@ - + - + From 5f715675c31431eef56e9a178e6779c23c6457c2 Mon Sep 17 00:00:00 2001 From: ycy <2861518472@qq.com> Date: Mon, 22 Apr 2024 17:15:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 88b0ed0..d93b18e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,13 +7,14 @@ const router = createRouter({ routes: [ { path: '/', + redirect: '/home', name: 'home', component: Layout, children: [ { - path: '/ad', - name: 'ad', - component: () => import('@/papes/ShiYan.vue') + path: '/home', + name: '首页', + component: HomeView, } ] }