From 1ea0db0f3b544098b7756eb33ca6e668c2a00ce0 Mon Sep 17 00:00:00 2001 From: Twilight Date: Thu, 28 Mar 2024 19:09:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/default/AppBar.vue | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) 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" } }) + +