feat: 个人中心(基础框架)

This commit is contained in:
dap
2024-09-02 15:13:17 +08:00
parent 568705b9ab
commit 6d19560863
7 changed files with 154 additions and 68 deletions

View File

@@ -1,9 +1,10 @@
<script lang="ts" setup>
import { computed, onMounted } from 'vue';
import { useRouter } from 'vue-router';
import { AuthenticationLoginExpiredModal } from '@vben/common-ui';
import { VBEN_DOC_URL, VBEN_GITHUB_URL } from '@vben/constants';
import { BookOpenText, CircleHelp, MdiGithub } from '@vben/icons';
import { BookOpenText, CircleHelp, MdiGithub, ProfileIcon } from '@vben/icons';
import {
BasicLayout,
LockScreen,
@@ -24,6 +25,7 @@ import { useAuthStore, useNotifyStore } from '#/store';
const userStore = useUserStore();
const authStore = useAuthStore();
const accessStore = useAccessStore();
const router = useRouter();
const menus = computed(() => [
{
@@ -35,6 +37,13 @@ const menus = computed(() => [
icon: BookOpenText,
text: $t('widgets.document'),
},
{
handler: () => {
router.push('/profile');
},
icon: ProfileIcon,
text: $t('widgets.profile'),
},
{
handler: () => {
openWindow(VBEN_GITHUB_URL, {