diff --git a/src/layout/component/appMain.vue b/src/layout/component/appMain.vue index d459351..06149b3 100644 --- a/src/layout/component/appMain.vue +++ b/src/layout/component/appMain.vue @@ -14,6 +14,6 @@ diff --git a/src/router/index.js b/src/router/index.js index b9cb54e..4ed3b28 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -8,13 +8,13 @@ export const menu = [ path:"/", name:"home", component:layout, - redirect:"/home1", + redirect:"/home", meta:{ title:"测试页面", icon:"set", }, children:[ - setPath({path:"home3",name:"home3",meta:{title:"首页", icon:"set"},page:import("@/view/home.vue")}), + setPath({path:"home",name:"home",meta:{title:"首页", icon:"set"},page:import("@/view/home.vue")}), setPath({path:"demo",name:"demo",meta:{title:"demo", icon:"set"},page:import("@/view/demo.vue")}), ] }, diff --git a/src/view/home.vue b/src/view/home.vue index 5f942d7..9ad801c 100644 --- a/src/view/home.vue +++ b/src/view/home.vue @@ -17,7 +17,7 @@