改进 布局
This commit is contained in:
parent
d8f152c40b
commit
853ba38454
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<router-view />
|
<Default />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
//
|
import Default from './layouts/default/Default.vue';
|
||||||
</script>
|
</script>
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
<v-list-item
|
<v-list-item
|
||||||
:prepend-icon="item.icon"
|
:prepend-icon="item.icon"
|
||||||
:title="item.text"
|
:title="item.text"
|
||||||
|
:value="item.text"
|
||||||
:to="item.to"
|
:to="item.to"
|
||||||
></v-list-item>
|
></v-list-item>
|
||||||
</template>
|
</template>
|
||||||
@ -45,9 +46,9 @@ const configStore = useConfigStore();
|
|||||||
const drawer = ref(false);
|
const drawer = ref(false);
|
||||||
|
|
||||||
const items = [
|
const items = [
|
||||||
{ icon: "mdi-contacts", text: "Contacts", to: "/" },
|
{ icon: "mdi-home", text: "首页", to: {name: "home"} },
|
||||||
{ icon: "mdi-history", text: "Frequently contacted", to: "/" },
|
{ icon: "mdi-history", text: "Frequently contacted", to: "/documents" },
|
||||||
{ icon: "mdi-content-copy", text: "Duplicates", to: "/" },
|
{ icon: "mdi-content-copy", text: "login", to: "/auth/login" },
|
||||||
];
|
];
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -6,11 +6,7 @@ import { useConfigStore } from "@/store/config";
|
|||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
component: () => import("@/layouts/default/Default.vue"),
|
name: "home",
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: "",
|
|
||||||
name: "Home",
|
|
||||||
meta: {
|
meta: {
|
||||||
auth: true,
|
auth: true,
|
||||||
},
|
},
|
||||||
@ -20,11 +16,14 @@ const routes = [
|
|||||||
component: () => import("@/views/Home.vue"),
|
component: () => import("@/views/Home.vue"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "auth/login",
|
path: "/auth/login",
|
||||||
name: "Login",
|
name: "login",
|
||||||
component: () => import("@/views/auth/Login.vue"),
|
component: () => import("@/views/auth/Login.vue"),
|
||||||
},
|
},
|
||||||
],
|
{
|
||||||
|
path: "/documents",
|
||||||
|
name: "documents",
|
||||||
|
component: () => import("@/views/documents/List.vue"),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
5
src/views/documents/List.vue
Normal file
5
src/views/documents/List.vue
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div>a</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts"></script>
|
Loading…
Reference in New Issue
Block a user