diff --git a/src/App.vue b/src/App.vue index 5ccaa21573addfa62220e52dddd535b8d570bbda..fa0d1ae72d5605acabb275e1f2ccb1083a785985 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,46 +1,27 @@ diff --git a/src/components/container/Home.vue b/src/components/container/Home.vue new file mode 100644 index 0000000000000000000000000000000000000000..3b8091ebcc0c02b577b1fc46799220c366d5cbdc --- /dev/null +++ b/src/components/container/Home.vue @@ -0,0 +1,21 @@ + + + + + \ No newline at end of file diff --git a/src/components/container/SideBar.vue b/src/components/container/SideBar.vue index db84373257d641c65e3a2ff8232eb995f1e6a234..67290d960e0f770e542c9e526b746c8f1ce852ff 100644 --- a/src/components/container/SideBar.vue +++ b/src/components/container/SideBar.vue @@ -51,18 +51,16 @@ export default { let isCollapse = ref(false); let router = useRouter() function click(e,tagname){ - router.replace(e.index) + router.replace('/home'+e.index) mitt.emit('navitem',{ path:e.index, tagname - }) - + }) } onMounted(()=>{ mitt.on('isfold',()=>{ isCollapse.value = !isCollapse.value }) - }) return { isCollapse, @@ -79,7 +77,6 @@ export default {