docs: update docs
This commit is contained in:
@@ -13,7 +13,7 @@ import { preferences } from '@vben-core/preferences';
|
||||
|
||||
import { $t } from '#/locales';
|
||||
import { resetRoutes } from '#/router';
|
||||
import { useAppStore } from '#/store';
|
||||
import { useAccessStore, useAppStore } from '#/store';
|
||||
|
||||
const notifications = ref<NotificationItem[]>([
|
||||
{
|
||||
@@ -81,6 +81,7 @@ const menus = computed(() => [
|
||||
]);
|
||||
|
||||
const appStore = useAppStore();
|
||||
const { userInfo } = useAccessStore();
|
||||
const router = useRouter();
|
||||
|
||||
async function handleLogout() {
|
||||
@@ -102,11 +103,11 @@ function handleMakeAll() {
|
||||
<BasicLayout @clear-preferences-and-logout="handleLogout">
|
||||
<template #user-dropdown>
|
||||
<UserDropdown
|
||||
:avatar="preferences.app.defaultAvatar"
|
||||
:avatar="userInfo?.avatar ?? preferences.app.defaultAvatar"
|
||||
:menus="menus"
|
||||
:text="userInfo?.realName"
|
||||
description="ann.vben@gmail.com"
|
||||
tag-text="Pro"
|
||||
text="Vben Admin"
|
||||
@logout="handleLogout"
|
||||
/>
|
||||
</template>
|
||||
|
@@ -27,12 +27,12 @@ export default defineConfig({
|
||||
icons: [
|
||||
{
|
||||
sizes: '192x192',
|
||||
src: 'https://cdn.jsdelivr.net/npm/@vbenjs/static-source@0.1.1/source/pwa-icon-192.png',
|
||||
src: 'https://cdn.jsdelivr.net/npm/@vbenjs/static-source@0.1.3/source/pwa-icon-192.png',
|
||||
type: 'image/png',
|
||||
},
|
||||
{
|
||||
sizes: '512x512',
|
||||
src: 'https://cdn.jsdelivr.net/npm/@vbenjs/static-source@0.1.1/source/pwa-icon-512.png',
|
||||
src: 'https://cdn.jsdelivr.net/npm/@vbenjs/static-source@0.1.3/source/pwa-icon-512.png',
|
||||
type: 'image/png',
|
||||
},
|
||||
],
|
||||
|
Reference in New Issue
Block a user