This commit is contained in:
dap
2024-10-05 00:30:29 +08:00
118 changed files with 2479 additions and 125 deletions

View File

@@ -39,7 +39,7 @@ exports[`defaultPreferences immutability test > should not modify the config obj
"icpLink": "",
},
"footer": {
"enable": true,
"enable": false,
"fixed": false,
},
"header": {

View File

@@ -1,6 +1,6 @@
{
"name": "@vben-core/preferences",
"version": "5.3.1",
"version": "5.3.2",
"homepage": "https://github.com/vbenjs/vue-vben-admin",
"bugs": "https://github.com/vbenjs/vue-vben-admin/issues",
"repository": {

View File

@@ -39,7 +39,7 @@ const defaultPreferences: Preferences = {
icpLink: '',
},
footer: {
enable: true,
enable: false,
fixed: false,
},
header: {

View File

@@ -28,6 +28,10 @@ function usePreferences() {
return isDarkTheme(preferences.theme.mode);
});
const locale = computed(() => {
return preferences.app.locale;
});
const isMobile = computed(() => {
return appPreferences.value.isMobile;
});
@@ -218,6 +222,7 @@ function usePreferences() {
isSideNav,
keepAlive,
layout,
locale,
preferencesButtonPosition,
sidebarCollapsed,
theme,