From ee86edfddee9af2806d64765ad439ecf59e1222e Mon Sep 17 00:00:00 2001 From: roger Date: Thu, 2 Mar 2023 15:34:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BB=A3=E7=A0=81=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 20_脚手架/vue_code/src/App.vue | 6 +++--- .../vue_code/src/components/About.vue | 13 ------------ .../vue_code/src/components/Banner.vue | 11 ++++++++++ 20_脚手架/vue_code/src/components/Home.vue | 13 ------------ 20_脚手架/vue_code/src/pages/About.vue | 21 +++++++++++++++++++ 20_脚手架/vue_code/src/pages/Home.vue | 21 +++++++++++++++++++ 20_脚手架/vue_code/src/router/index.js | 4 ++-- 7 files changed, 58 insertions(+), 31 deletions(-) delete mode 100644 20_脚手架/vue_code/src/components/About.vue create mode 100644 20_脚手架/vue_code/src/components/Banner.vue delete mode 100644 20_脚手架/vue_code/src/components/Home.vue create mode 100644 20_脚手架/vue_code/src/pages/About.vue create mode 100644 20_脚手架/vue_code/src/pages/Home.vue diff --git a/20_脚手架/vue_code/src/App.vue b/20_脚手架/vue_code/src/App.vue index 58ce7bf..01573f5 100644 --- a/20_脚手架/vue_code/src/App.vue +++ b/20_脚手架/vue_code/src/App.vue @@ -1,9 +1,7 @@ diff --git a/20_脚手架/vue_code/src/components/About.vue b/20_脚手架/vue_code/src/components/About.vue deleted file mode 100644 index f1830d7..0000000 --- a/20_脚手架/vue_code/src/components/About.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - \ No newline at end of file diff --git a/20_脚手架/vue_code/src/components/Banner.vue b/20_脚手架/vue_code/src/components/Banner.vue new file mode 100644 index 0000000..ea3040a --- /dev/null +++ b/20_脚手架/vue_code/src/components/Banner.vue @@ -0,0 +1,11 @@ + + + diff --git a/20_脚手架/vue_code/src/components/Home.vue b/20_脚手架/vue_code/src/components/Home.vue deleted file mode 100644 index ea7fc76..0000000 --- a/20_脚手架/vue_code/src/components/Home.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - \ No newline at end of file diff --git a/20_脚手架/vue_code/src/pages/About.vue b/20_脚手架/vue_code/src/pages/About.vue new file mode 100644 index 0000000..26560f1 --- /dev/null +++ b/20_脚手架/vue_code/src/pages/About.vue @@ -0,0 +1,21 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/src/pages/Home.vue b/20_脚手架/vue_code/src/pages/Home.vue new file mode 100644 index 0000000..695efa3 --- /dev/null +++ b/20_脚手架/vue_code/src/pages/Home.vue @@ -0,0 +1,21 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue_code/src/router/index.js b/20_脚手架/vue_code/src/router/index.js index f8af21b..55c985e 100644 --- a/20_脚手架/vue_code/src/router/index.js +++ b/20_脚手架/vue_code/src/router/index.js @@ -1,8 +1,8 @@ import VueRouter from "vue-router"; // 引入组件 -import About from "../components/About.vue" -import Home from "../components/Home.vue" +import About from "@/pages/About.vue" +import Home from "@/pages/Home.vue" // 创建一个路由器 export default new VueRouter({