-
-
\ 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 @@
-
-
-
demo page
-
-
-
\ 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 @@
-
-
-
-
demo
- svg-icon:
-
-
-
-
111
-
-
{{foo}}
-
-
-
-
-
-
-
\ 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