refactor: refacotr preference

This commit is contained in:
vben
2024-06-01 23:15:29 +08:00
parent f7b97e8a83
commit fed47f5e05
139 changed files with 2205 additions and 1450 deletions

View File

@@ -1,12 +1,13 @@
<script lang="ts" setup>
import type { NotificationItem } from '@vben/common-ui';
import { preferences } from '@vben-core/preferences';
import { useAccessStore } from '@vben-core/stores';
import { Notification, UserDropdown } from '@vben/common-ui';
import { IcRoundCreditScore, MdiDriveDocument, MdiGithub } from '@vben/icons';
import { BasicLayout } from '@vben/layouts';
import { $t } from '@vben/locales';
import { preference } from '@vben/preference';
import { useAccessStore } from '@vben/stores';
import { openWindow } from '@vben/utils';
import { computed, ref } from 'vue';
import { useRouter } from 'vue-router';
@@ -93,7 +94,7 @@ function handleNoticeClear() {
<BasicLayout>
<template #user-dropdown>
<UserDropdown
:avatar="preference.defaultAvatar"
:avatar="preferences.app.defaultAvatar"
:menus="menus"
text="Vben Admin"
description="ann.vben@gmail.com"

View File

@@ -2,7 +2,7 @@ const BasicLayout = () => import('./basic.vue');
const IFrameView = () => import('@vben/layouts').then((m) => m.IFrameView);
const AuthPageLayout = () =>
import('@vben/layouts').then((m) => m.AuthPageLayout);
const AuthPageLayoutType = () =>
import('@vben/layouts').then((m) => m.AuthPageLayoutType);
export { AuthPageLayout, BasicLayout, IFrameView };
export { AuthPageLayoutType, BasicLayout, IFrameView };