chore: update deps

This commit is contained in:
vben
2024-05-28 23:38:36 +08:00
parent f2644dbbc5
commit 11a36ef03f
32 changed files with 327 additions and 274 deletions

View File

@@ -34,7 +34,7 @@
"dependencies": {
"@vben-core/toolkit": "workspace:*",
"@vben-core/typings": "workspace:*",
"@vueuse/core": "^10.9.0",
"@vueuse/core": "^10.10.0",
"vue": "3.4.27"
}
}

View File

@@ -110,8 +110,8 @@ function updateTheme(preference: Preference) {
function updateColorMode(preference: Preference) {
const { colorGrayMode, colorWeakMode } = preference;
const body = document.body;
const COLOR_WEAK = 'invert';
const COLOR_GRAY = 'grayscale';
const COLOR_WEAK = 'invert-mode';
const COLOR_GRAY = 'grayscale-mode';
colorWeakMode
? body.classList.add(COLOR_WEAK)
: body.classList.remove(COLOR_WEAK);