diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue deleted file mode 100644 index 8e69f15..0000000 --- a/src/components/HelloWorld.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - diff --git a/src/layout/component/appMain.vue b/src/layout/component/appMain.vue deleted file mode 100644 index aeb0f1f..0000000 --- a/src/layout/component/appMain.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/src/layout/component/index.js b/src/layout/component/index.js deleted file mode 100644 index b071e0b..0000000 --- a/src/layout/component/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export {default as sidebar} from './sidebar/index.vue' -export {default as appMain} from './appMain.vue' \ No newline at end of file diff --git a/src/layout/component/sidebar/index.vue b/src/layout/component/sidebar/index.vue deleted file mode 100644 index 4246c05..0000000 --- a/src/layout/component/sidebar/index.vue +++ /dev/null @@ -1,26 +0,0 @@ - - - diff --git a/src/layout/component/sidebar/item.vue b/src/layout/component/sidebar/item.vue deleted file mode 100644 index 39f12d8..0000000 --- a/src/layout/component/sidebar/item.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/src/layout/component/sidebar/sidebarItem.vue b/src/layout/component/sidebar/sidebarItem.vue deleted file mode 100644 index 74db863..0000000 --- a/src/layout/component/sidebar/sidebarItem.vue +++ /dev/null @@ -1,63 +0,0 @@ - - - diff --git a/src/layout/index.vue b/src/layout/index.vue deleted file mode 100644 index fdb9296..0000000 --- a/src/layout/index.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 4ed3b28..ab2689e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,22 +1,12 @@ import { createRouter, createWebHashHistory } from "vue-router"; -import layout from '@/layout/index.vue' import store from '@/store' const routes=[] export const menu = [ { path:"/", - name:"home", - component:layout, - redirect:"/home", - meta:{ - title:"测试页面", - icon:"set", - }, - children:[ - 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")}), - ] + component:()=>import("@/views/home.vue"), + children:[] }, ]; const router = createRouter({ @@ -24,13 +14,4 @@ const router = createRouter({ routes: routes.concat(menu), }); -function setPath(val){ - return{ - path:val.path, - name:val.name, - meta:val.meta||{}, - component:()=>val.page.then(e=>({...e.default,name:val.name})) - } -} - export default router; \ No newline at end of file diff --git a/src/view/demo.vue b/src/view/demo.vue deleted file mode 100644 index 6e49cd0..0000000 --- a/src/view/demo.vue +++ /dev/null @@ -1,30 +0,0 @@ - - - \ No newline at end of file diff --git a/src/view/home.vue b/src/view/home.vue deleted file mode 100644 index 5d3586b..0000000 --- a/src/view/home.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/home.vue b/src/views/home.vue new file mode 100644 index 0000000..2400f9d --- /dev/null +++ b/src/views/home.vue @@ -0,0 +1,10 @@ + + + \ No newline at end of file