wip: 🚧 个人中心临时提交

This commit is contained in:
ray
2024-08-14 08:21:38 +08:00
parent f86cc0d8b1
commit 674629269c
6 changed files with 101 additions and 28 deletions

View File

@@ -77,6 +77,9 @@
</div>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item divided @click="handleOpenUserProfile">
{{ $t("navbar.profile") }}
</el-dropdown-item>
<a
target="_blank"
href="https://gitee.com/youlaiorg/vue3-element-admin"
@@ -166,6 +169,11 @@ const getFilteredMessages = (type: MessageTypeEnum) => {
return messages.value.filter((message) => message.type === type);
};
/** 打开个人中心 */
function handleOpenUserProfile() {
router.push({ name: "Profile" });
}
/* 注销 */
function logout() {
ElMessageBox.confirm("确定注销并退出系统吗?", "提示", {