style: modify the function name to make it more semantic

This commit is contained in:
陈凯龙 2022-03-25 08:41:57 +08:00
parent 69d3dcc7ed
commit 046ae512f0
1 changed files with 3 additions and 7 deletions

View File

@ -15,12 +15,13 @@ const currentSize = computed(() => appStore.getCurrentSize)
const greyMode = computed(() => appStore.getGreyMode)
const initDark = () => {
//
const setDefaultTheme = () => {
const isDarkTheme = isDark()
appStore.setIsDark(isDarkTheme)
}
initDark()
setDefaultTheme()
</script>
<template>
@ -50,11 +51,6 @@ body {
}
.@{prefix-cls}-grey-mode {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
}
</style>