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({