diff --git a/src/layouts/default/AppBar.vue b/src/layouts/default/AppBar.vue index 8f2c386..07d0f84 100644 --- a/src/layouts/default/AppBar.vue +++ b/src/layouts/default/AppBar.vue @@ -21,6 +21,13 @@ title="首页" :to="route_names.home" > + + @@ -37,21 +44,19 @@ import { ref } from "vue"; import app from "../../config/app"; import {useUserStore} from "@/stores/user"; const userStore = useUserStore() -import {mdiHome} from "@mdi/js/commonjs/mdi"; const drawer = ref(false); -const items = ref([ - { icon: "mdi-home", text: "首页", to: { name: "home" } }, - // { icon: "mdi-content-copy", text: "资料库", to: { name: "libraries" } }, - // { icon: "mdi-history", text: "Frequently contacted", to: "/documents" }, - { icon: "mdi-account", text: userStore.access_token ? "注销" : "登录", to: { name: "login" } }, -]) const route_names = ref({ "home": { name: "home" + }, + "login": { + name: "login" } }) + +